开发者

Java XML to Array [closed]

开发者 https://www.devze.com 2023-03-24 23:32 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current fo开发者_如何学编程r
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current fo开发者_如何学编程rm. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

Is there a function in java to convert a XML, which comes from an InputStream, into an Array?

Thanks for Answers


have a look at xstream - http://x-stream.github.io/. Very easy to use library to convert XML into java objects.


No there isn't. An XML is a tree datastructure that has no trivial translation to a flat array.

Of course you can write this function yourself, if you know what you want. Also there are many 3rd party libraries that allow conversion from XML to Java objects, but it's hard to recommend one without knowing what your problem exactly is.

0

精彩评论

暂无评论...
验证码 换一张
取 消