在对其进行操作之前,我正在将XML String转换为Document.我从第三方API收到XML.
这是我的XML
这是我得到的例外
org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String to the required type: org.w3c.dom.Document with value due org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 64; Attribute name "full" associated with an element type "Student" must be followed by the ' = ' character.
现在,我没有定义,只是从此XML中检索属性值.也就是说,明天该元素类型可能是Student的Teacher,但我只是将诸如registration,class甚至“ full / part”之类的属性值放在一起.
我想知道在给定元素类型的XML属性名称中,哪个org.w3c.dom.Document可以容忍此正斜杠.