Search the web
Sign In
New User? Sign Up
xml-treepp · XML::TreePP Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

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

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Spaces around equals sign in xml attributes?   Message List  
Reply | Forward Message #27 of 32 |
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

Forward
Message #27 of 32 |
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 © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help