User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the XML, XSLT and XPATH section within the Software Development category of DaniWeb, a massive community of 373,375 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,813 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our XML, XSLT and XPATH advertiser:
Views: 761 | Replies: 2
Reply
Join Date: Nov 2007
Posts: 3
Reputation: msankardas is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
msankardas msankardas is offline Offline
Newbie Poster

Help XML Linking !!!

  #1  
Mar 13th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Posts: 3
Reputation: msankardas is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
msankardas msankardas is offline Offline
Newbie Poster

Re: XML Linking !!!

  #2  
Mar 13th, 2008
Is it possible through XInclude and XPointers ???
Reply With Quote  
Join Date: Nov 2007
Posts: 3
Reputation: msankardas is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
msankardas msankardas is offline Offline
Newbie Poster

Re: XML Linking !!!

  #3  
Mar 29th, 2008
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..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb XML, XSLT and XPATH Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the XML, XSLT and XPATH Forum

All times are GMT -4. The time now is 3:03 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC