Categories

See More
Popular Forum

MBA (4887) B.Tech (1769) Engineering (1486) Class 12 (1030) Study Abroad (1004) Computer Science and Engineering (988) Business Management Studies (865) BBA (846) Diploma (746) CAT (651) B.Com (648) B.Sc (643) JEE Mains (618) Mechanical Engineering (574) Exam (525) India (462) Career (452) All Time Q&A (439) Mass Communication (427) BCA (417) Science (384) Computers & IT (Non-Engg) (383) Medicine & Health Sciences (381) Hotel Management (373) Civil Engineering (353) MCA (349) Tuteehub Top Questions (348) Distance (340) Colleges in India (334)
See More

Is there any framework/technology supporting embedding XML into XML recursively?

General Tech Technology & Software

Max. 2000 characters
Replies

usr_profile.png

User

( 2 months ago )

Let assume I have a set of arbitrary XML's that I would like to embed into each other recursively. Is there any technology or framework helping with this? I am looking for something adding, removing and searching XML's within XML's.

EDIT

Someone removed the recursion tag from my question. I guess I am not making myself clear. Let's imagine XML's represent data structures instances referring each other. Is there a technology/framework handling this?

EDIT II

Someone claims I am not talking about recursion, but about circular references at best. I am not excluding the possibility of having one data structure referencing itself (by instance or by definition, it does not matter). I DO mean recursive as in fractal so to speak, so please stop removing my tag.

usr_profile.png

User

( 2 months ago )

No, not out of the box in standard XML. Basically you need to have a mechanism of recording linkage between elements in the final XML document, and then have a savvy marshalling and demarshalling tech to handle the references. This is an object serialization to XML issue, effectively.

Without it, for example, if you were to try and save a circular list, you'd end up having an infinite loop as the tail element returns to the head element and keeps writing. References fix that issue for you.

I believe XStream will do this for you out of the box (if you're in Java, but you don't mention that).

what's your interest


forum_ban8_5d8c5fd7cf6f7.gif