473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Help: getting data from an external xml file

Hi,

I am a first-time XML programmer. I have to get a value from an external
well-done xml file, that starts with a tag

<FIELD1>

and ends with

</FIELD1>

with no other declarations. I don't manage to reach the datas!!!
I can't use SYSTEM in the dtd declaration part, because this file is not
a dtd, so I choosed to include it with php, but it doesn't work. I have
created a dtd for all the fields of this data file, and put a xsl file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE tabledoc SYSTEM "dtdfile.dtd">
<?xml-stylesheet type="text/css" href="xslfile.xsl"?>
<?php
include ("datafile.xml");
?>

and the xslfile is this:

<?xml version="1.0"?>
<xsl:mytable xmlns:xsl="uri:xsl">
<HTML>
<BODY>
<DIV>
<SPAN STYLE="font-weight:bold; font-size:20">
<xsl:get-value for="PARENT/CHILD"/>
</SPAN>
</DIV>
</BODY>
</HTML>
</xsl:mytable>

and the result is: a first level element is need.
Please help me.
Thanks to everybody
--

Mauro
Jul 20 '05 #1
0 1459

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mauro Improta | last post by:
Hi, I am a first-time XML programmer. I have to get a value from an external well-done xml file, that starts with a tag <FIELD1> and ends with </FIELD1>
2
by: CoolDudeMan | last post by:
I'm currently working on a class "Course" and I'm getting an unresolved external error when trying to compile. I understand that unresolved externals are caused by declaration of methods that...
4
by: Kyle Sheldon | last post by:
I'm currently working on a class "Course" and I'm getting an unresolved external error when trying to compile. I understand that unresolved externals are caused by declaration of methods that...
2
by: Panda2 | last post by:
I'm getting multple definition errors for the struct in the following, and I don't know how to get around it. I've tried using extern (which I don't really understand) but it didn't help (maybe...
17
by: VM | last post by:
In my Windows app, I'm running a batch process that's composed of a FOR loop that'll run 15,000 times (datatable row count), copy cthe data of each row -3 fields- to a struct, and send the strct to...
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
1
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include...
2
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.