开发者

Java XML to Array [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜