If I have colon separated xml tags like <my:tag>
, which library provides easy parsing and value manipulation? What do I have to look for?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- Illegal to have multiple roots (start tag in epilo
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
The
my
before the colon is a namespace prefix, and there should be an attributexmlns:my
on either the same element or one of its enclosing elements somewhere higher up which associates a namespace URI with the prefix. All the standard Java XML technologies support namespaces (SAX, DOM and StAX provided with the JRE as well as third party libraries like JDOM and XOM), the thing you need to remember is that you generally refer to elements in any API using the namespace URI and local name (the bit after the colon), not the prefix specifically.