Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.9.1
-
Unknown
Description
when I try to split a big XML file using split().tokenizeXML("child", "parent").streaming() and if the parent's namespace declaration are separated with new line in the XML file, child element does not inherit the namespace declarations. When all declarations are on the same line it works ok.
<?xml version="1.0" encoding="UTF-8"?>
<parent xmlns:ns1="ns1.url"
xmlns:ns2="ns2.url">
<child></child>
<child></child>
</parent>
doesn't work but
<?xml version="1.0" encoding="UTF-8"?>
<parent xmlns:ns1="ns1.url" xmlns:ns2="ns2.url">
<child></child>
<child></child>
</parent>
is OK