Created
July 14, 2011 22:37
-
-
Save evanlenz/1083640 to your computer and use it in GitHub Desktop.
Code examples for article http://developer.marklogic.com/blog/good-xml-design-and-performance
This file contains 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
<doc> | |
<group type="widget"> | |
<item type="sprocket">...</item> | |
... | |
</group> | |
<group type="employee"> | |
<item type="executive">...</item> | |
... | |
</group> | |
<group type="place"> | |
<item type="city">...</item> | |
... | |
</group> | |
</doc> |
This file contains 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
//group[@type eq 'widget']/item[@type eq 'sprocket'] |
This file contains 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
//widgets/sprocket |
This file contains 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
<doc> | |
<widgets> | |
<sprocket>...</sprocket> | |
... | |
</widgets> | |
<employees> | |
<executive>...</executive> | |
... | |
</employees> | |
<places> | |
<city>...</city> | |
... | |
</places> | |
</doc> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment