aspose file tools
The moose likes XML and Related Technologies and the fly likes referencing another xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "referencing another xml" Watch "referencing another xml" New topic
Author

referencing another xml

jonathan Greens
Ranch Hand

Joined: Apr 07, 2004
Posts: 139
hi folks,
I have two xmls:

how would I link all the elements of personx.xml to Department.xml, I understand that you can use xslt. But that involves running xml transform from another application and producing a new xml file(correct?).
is there a way to link it statically? Persons.xml doesn't have to have the root element.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
You can "import" the persons.xml document by specifying an ENTITY and referencing it with &MyPersonsDoc;


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
jonathan Greens
Ranch Hand

Joined: Apr 07, 2004
Posts: 139
Thanks. But I want to use xml schema instead of dtd, and entity has to be declared within a dtd. IS there any other way?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: referencing another xml
 
Similar Threads
Overrinding ATTLIST in DTD
Newbie XML to/froPOJO question.
How do i obtain unique value thru this code
passing parameters
WHat are Keys ? (plz Help)