![]() ![]() | ![]() |
libxml2
1: <?xml version='1.0'?> 2: <!DOCTYPE root [ 3: <!ENTITY % deftest '<!ELEMENT test (#PCDATA) >' > 4: <!ENTITY % defmiddle '<!ELEMENT middle (test) >' > 5: <!ENTITY % defroot '<!ELEMENT root (middle) >' > 6: %defroot;%defmiddle;%deftest; 7: ]> 8: <root><middle><test>sample</test></middle></root>