•
•
•
•
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 330,223 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,963 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: 500 | Replies: 2
![]() |
•
•
Join Date: Nov 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 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
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
- Free File Hosting - 300MB (Web Hosting Deals)
- How do I get ranked in Yahoo? (Search Engine Optimization)
- Using XML data to link a new server (JavaScript / DHTML / AJAX)
- Data feed url linking (PHP)
- Strange linking error at run-time (C++)
- Linking Java and C# (C#)
- Is anyone up to a challenge? (Visual Basic 4 / 5 / 6)
- making a banking project (VB.NET)
Other Threads in the XML, XSLT and XPATH Forum
- Previous Thread: appending a new node to am existing xml file
- Next Thread: write/Read into XML File Using VC++ 6.0 please help me


Linear Mode