0

Hi,

I am a newbie when it comes to programming in xml, so my doubts can sound stupid.

Anyway, here is what I want to convey.
I have a test.xml file like this.

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE REQUEST [
<!ENTITY cred SYSTEM "/test/credentials.xml">
]>

<REQUEST Name="calculateBusinessHours">
<start Value="06/28/2007 16:53:16" />
<hours Value="8" />

&cred;

</REQUEST>

and credentials.xml is as follows.
<credentials>
<id>bob</id>
<pw>sandiego</pw>
</credentials>

Using this mechanism, the entire contents of credentials.xml comes in the test.xml file(the first one), when I open it in something like Internet Explorer.
I want to access only the <id>bob</id> portion of the credentials.xml file(not the <pw>sandiego</pw> part)... is there a method to achieve this in this file itself??? A sort of selecting linking of one xml file in another.

Regards
Manu

1
Contributor
2
Replies
3
Views
9 Years
Discussion Span
Last Post by msankardas
0

Is there any way I can parse the external entity link that I have added.
for eg: in my xml file I have
<!ENTITY cred SYSTEM "/test/credentials.xml">.
I want to retieve this location "/test/credentials.xml", is there any way i can achieve that??
please help..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.