Re: Can XMLBean parse multiple XMLs?

2007-06-13 Thread Jacob Danner
Hi Bo, This will not work as a new XmlObject (think xml instance) is created on each call. XmlObject.Factory.parse(FileA); XmlObject.Factory.parse(FileB); XmlObject.Factory.parse(FileC); If you concatenate into one instance that should work. -Jacob Danner On 6/12/07, Bo Wen [EMAIL PROTECTED]

Re: Can XMLBean parse multiple XMLs?

2007-06-13 Thread Jacob Danner
Hi Bo, I guess the complete answer is there is no EASY way to do this. You might be able to HACKHACK something together using XmlCursor APIs like XmlCursor.copyXml(...) or copyXmlContents(...). I've gotta wonder if maybe you aren't making this more difficult on yourself by not using standard XML

Re: Can XMLBean parse multiple XMLs?

2007-06-13 Thread Bo Wen
Hi, Jacob, Thanks for your thought. The reason to split them into multiple files is to share content. For example, I may have the following import chains: File A -- File B -- File C (B imports A and C imports B) File A -- File B -- File D (B imports A and D imports B) File A -- File E (E

Can XMLBean parse multiple XMLs?

2007-06-12 Thread Bo Wen
Hi, All, I have multiple XML files related through my own import tag. These files share same schema. This is used to support content sharing and inheritance like features. Put another way, it is like import tag in Ant build file. Can XMLBean load and parse multiple XMLs at one time? If not,

Re: Can XMLBean parse multiple XMLs?

2007-06-12 Thread Jacob Danner
Hi Bo, I'm not sure I completely understand the question, but I'll give it a shot. If you are trying to do something like XmlObject.Factory.parse(instanceDocument/); My guess is your import / tag won't work as you expect it to because its not part of the normal XML grammar (AFAIK) and the parser

Re: Can XMLBean parse multiple XMLs?

2007-06-12 Thread Bo Wen
Thanks for the reply. You are right. import/ is just a normal tag and from my own schema. I don't expect any parser understand that. I will need to manually load all imported files into memory and treat them as a single XML in memory for navigation. I will have to write special logic to