Created
January 30, 2012 19:34
-
-
Save jnthn/1706190 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's the doc, in text form, before parsing: | |
<test><element1 attrib1="hello" attrib2="world"/><element2 attrib1="goodbye" attrib2="universe">with content</element2><element3 what="is it"><foo/></element3></test> | |
Setting attrib1 to hello | |
Setting attrib2 to world | |
Now, here's the doc, after being parsed into an object. | |
<?xml version="1.0"?><test><element1 attrib1="hello" attrib2="world"/><element2>with content</element2><element3><foo/></element3></test> | |
Now, what happened to the attributes for the element with contents? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment