[英]< issue in AXIOM parser
Axiom parser converts "< ;" Axiom 解析器转换“< ;” to "<" if it is followed by empty node.This makes the xml content invalid.
如果后面是空节点,则改为“<”。这会使 xml 内容无效。
XML Input: XML 输入:
case 1: <A> test <B></B> < test1 </A>
case 2: <A> test <B>ear</B> < test1 </A>
XML Output: XML 输出:
case 1: <A> test <B/> < test1 </A> [Incorrect]
case 2: <A> test <B>ear</B> < test1 </A> [Correct]
Axiom Code:公理代码:
InputStream ina = new FileInputStream(fileName);
OMElement root = OMXMLBuilderFactory.createOMBuilder(ina).getDocumentElement();
Is there any way to handle this scenario ?有没有办法处理这种情况?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.