Skip to search.
xml-treepp · XML::TreePP Group

Group Information

  • Members: 11
  • Category: Open Source
  • Founded: Aug 17, 2006
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
Spaces around equals sign in xml attributes?   Message List  
Reply Message #27 of 41 |
Hi,

Thanks very much for your module - it's fantastic (and SO much easier
to install than the first xml parser I looked at!).

One question - in the following, Attrib won't be seen:

<Elem Attrib = "abc" />

because of the spaces around the =.

Chances are it's invalid xml, but maybe the parser should understand
it anyway since some parsers do (and this script isn't really
intended as a validator I guess)?

I changed line 763 to
([^\s\=\"\']+)\s*=\s*(?:(")(.*?)"|'(.*?)')
to support this - no sure if others may find is useful.

Other than that - brilliant! Thank you!

John




Wed May 7, 2008 1:19 am

sea_letter
Offline Offline
Send Email Send Email

Message #27 of 41 |
Expand Messages Author Sort by Date

Hi, Thanks very much for your module - it's fantastic (and SO much easier to install than the first xml parser I looked at!). One question - in the following,...
sea_letter Offline Send Email May 7, 2008
1:19 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help