473,320 Members | 1,990 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,320 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 1456

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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.