Created
February 12, 2018 02:35
-
-
Save nico/97bd26b5f287808ecf2edf8e1c4eb55d to your computer and use it in GitHub Desktop.
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
Nicos-MacBook-Pro:hack thakis$ clang -o xmltest xmltest_libxml.cc -I$(xcrun -show-sdk-path)/usr/include/libxml2 -lxml2 && ./xmltest xmltest_in.xml | |
xmltest_in.xml:3: namespace warning : xmlns: URI foo is not absolute | |
<hi xmlns="foo" xmlns:x="bar"> | |
^ | |
1/XML_ELEMENT_NODE hi (null) | |
3/XML_TEXT_NODE text | |
1/XML_ELEMENT_NODE hi (null) ((null):foo XML_NAMESPACE_DECL) (x:bar XML_NAMESPACE_DECL) | |
def ns: ((null):foo XML_NAMESPACE_DECL) (x:bar XML_NAMESPACE_DECL) 3/XML_TEXT_NODE text | |
7/XML_PI_NODE foobar version="1.0" | |
3/XML_TEXT_NODE text | |
1/XML_ELEMENT_NODE ho (null) ((null):foo XML_NAMESPACE_DECL) (x:bar XML_NAMESPACE_DECL) | |
3/XML_TEXT_NODE text text&more@ | |
1/XML_ELEMENT_NODE ho (null) (x:bar XML_NAMESPACE_DECL) | |
2/XML_ATTRIBUTE_NODE attr (null) (x:bar XML_NAMESPACE_DECL) | |
3/XML_TEXT_NODE text adsf | |
3/XML_TEXT_NODE text | |
8/XML_COMMENT_NODE comment adsf | |
3/XML_TEXT_NODE text | |
3/XML_TEXT_NODE text | |
4/XML_CDATA_SECTION_NODE (null) my cdata | |
3/XML_TEXT_NODE text | |
1/XML_ELEMENT_NODE ho (null) | |
3/XML_TEXT_NODE text | |
Author
nico
commented
Feb 12, 2018
•
<?xml version="1.0" encoding="utf-8"?>
<hi>
<hi xmlns="foo" xmlns:x="bar">
<?foobar version="1.0"?>
<ho
/>text&more@<x:ho x:attr="adsf"/>
<!-- adsf -->
</hi>
<![CDATA[my cdata]]>
<ho/>
</hi>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment