473,388 Members | 1,335 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,388 software developers and data experts.

need help to figure out what to do with this XML

I ran into errors trying to open an xml file in IE with content as below.
I need to access this file using ReadXML in .NET but do not where to start.
Can you please tell me what XML files I may need to have access to (DTD, for
example)
Thanks a million!

Bill

-------------------
<?xml version="1.0"?>
<pcats:NAXML-FuelsDoc
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16
NAXML-FuelPrice15.xsd" version="1.5">
<pcats:TransmissionHeader>
<pcats:TransmissionId>200607311642</pcats:TransmissionId>
<pcats:TransmissionDate>2006-07-31</pcats:TransmissionDate>
<pcats:TransmissionTime>16:42:34-06:00</pcats:TransmissionTime>
<pcats:TransmissionStatus>original</pcats:TransmissionStatus>
<pcats:TransmissionSender>Valero Unbranded</pcats:TransmissionSender>
<pcats:TransmissionAgency>DTN Integrated
Services/dtnDataConnect</pcats:TransmissionAgency>
</pcats:TransmissionHeader>
<pcats:FuelPriceInfo>
<pcats:Terminal>
<pcats:Name identType="PlantNumber" ident="2026">
<pcats:NamePrefix>ElPs Valero</pcats:NamePrefix>
</pcats:Name>
<pcats:City>El Paso</pcats:City>
<pcats:State>TX</pcats:State>
<pcats:FuelProduct><pcats:EffectiveDate>2006-07-31</pcats:EffectiveDate>
<pcats:EffectiveTime>18:00:00</pcats:EffectiveTime>
<pcats:FuelProductId identType="Low Sulfur #2 Clear
Diesel">0007</pcats:FuelProductId>
<pcats:Price>2.618000</pcats:Price>
<pcats:NetChange>.016500</pcats:NetChange>
</pcats:FuelProduct>
</pcats:Terminal>
</pcats:FuelPriceInfo>
</pcats:NAXML-FuelsDoc>

Jul 31 '06 #1
3 1331
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>I ran into errors trying to open an xml file in IE with content as below.
I need to access this file using ReadXML in .NET but do not where to
start.
Can you please tell me what XML files I may need to have access to (DTD,
for example)
Thanks a million!
What happens when you try to read this?

And what is ReadXML?

John
-------------------
<?xml version="1.0"?>
<pcats:NAXML-FuelsDoc
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16
NAXML-FuelPrice15.xsd" version="1.5">
<pcats:TransmissionHeader>
<pcats:TransmissionId>200607311642</pcats:TransmissionId>
<pcats:TransmissionDate>2006-07-31</pcats:TransmissionDate>
<pcats:TransmissionTime>16:42:34-06:00</pcats:TransmissionTime>
<pcats:TransmissionStatus>original</pcats:TransmissionStatus>
<pcats:TransmissionSender>Valero Unbranded</pcats:TransmissionSender>
<pcats:TransmissionAgency>DTN Integrated
Services/dtnDataConnect</pcats:TransmissionAgency>
</pcats:TransmissionHeader>
<pcats:FuelPriceInfo>
<pcats:Terminal>
<pcats:Name identType="PlantNumber" ident="2026">
<pcats:NamePrefix>ElPs Valero</pcats:NamePrefix>
</pcats:Name>
<pcats:City>El Paso</pcats:City>
<pcats:State>TX</pcats:State>
<pcats:FuelProduct><pcats:EffectiveDate>2006-07-31</pcats:EffectiveDate>
<pcats:EffectiveTime>18:00:00</pcats:EffectiveTime>
<pcats:FuelProductId identType="Low Sulfur #2 Clear
Diesel">0007</pcats:FuelProductId>
<pcats:Price>2.618000</pcats:Price>
<pcats:NetChange>.016500</pcats:NetChange>
</pcats:FuelProduct>
</pcats:Terminal>
</pcats:FuelPriceInfo>
</pcats:NAXML-FuelsDoc>

Aug 1 '06 #2
Bill,
I am also working on loading NAXML journals into sql 2000/2005. To
use .ReadXml() you need to Import System.Data.SqlClient and create a
new DataSet. Then just call:

DataSetName.ReadXml("c:\path\to\your\file.xml")

I did something similar trying to generate a valid schema file to allow
me to bulkload using SQLXML (much simpler and more robust/scaleable, if
I can get the schema down.) That is to say, once I executed
..ReadXml(), I loop through the dataTables in the dataset and the
columns and their properties in each table. I used a streamwriter to
ouptut this to a text file and generated the necessary SQL tables and
am finishing up the schema now.

Althought I haven't worked with the FuelsDoc spec yet, the process
should be very similar. While having the DTD and .xsd files for the
spec are handy for reference, they're poorly, if at all, documented and
do absolutely nothing to help in bulk loading your data.
HTH,
nylyst

Aug 1 '06 #3
Nylyst;

I'm glad you are working on NAXML.
I've just started working with it and don't know much about NACS standard.
I was able to read non-NAXML version of Fuelsdoc from DTN but it still
requires the DTD in the same directory with the XML files.

I'll try your suggestion and will let you know.

Thanks

Bill
<ny****@gmail.comwrote in message
news:11**********************@s13g2000cwa.googlegr oups.com...
Bill,
I am also working on loading NAXML journals into sql 2000/2005. To
use .ReadXml() you need to Import System.Data.SqlClient and create a
new DataSet. Then just call:

DataSetName.ReadXml("c:\path\to\your\file.xml")

I did something similar trying to generate a valid schema file to allow
me to bulkload using SQLXML (much simpler and more robust/scaleable, if
I can get the schema down.) That is to say, once I executed
.ReadXml(), I loop through the dataTables in the dataset and the
columns and their properties in each table. I used a streamwriter to
ouptut this to a text file and generated the necessary SQL tables and
am finishing up the schema now.

Althought I haven't worked with the FuelsDoc spec yet, the process
should be very similar. While having the DTD and .xsd files for the
spec are handy for reference, they're poorly, if at all, documented and
do absolutely nothing to help in bulk loading your data.
HTH,
nylyst

Aug 1 '06 #4

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

Similar topics

9
by: Nathan Rose | last post by:
Here's my problem. I am reading from a text file using this: if (!file_exists($file)) { echo "Don't exist\n"; return false; } $fd = @fopen($file, 'r'); if (!is_resource($fd))
5
by: TrvlOrm | last post by:
HI There, I have been struggling with JavaScript code for days now, and this is my last resort! Please help... I am trying to create a JavaScript slide show with links for Next Slide,...
28
by: Jed | last post by:
Hello to all! I have a couple of projects I intend starting on, and was wondering if someone here could make a suggestion for a good compiler and development environment. My goals are as...
6
by: Richard Hollenbeck | last post by:
I'd like a button on my main form to backup the database. How can I call up the Windows folder browser to prompt me for a filename and type (*.mdb) and folder to save in? I looked in my book and...
6
by: news | last post by:
I need some concise, easy to grok examples of what .Net (preferably C#.Net) has over just using old ASP or PHP with JavaScript. See, I'm a PHP guy, and while I started server-side scripting with...
20
by: Martin Jørgensen | last post by:
Hi, I'm reading a number of double values from a file. It's a 2D-array: 1 2 3 4 5 6 7 ------------- 1 3.2 2 0 2.1 3 9.3 4
2
by: JRamirez | last post by:
Need help cannot figure out where I made the error. -------------------------------------------------------------------------------- Can someone view what I have, I need help I cannot figure out...
1
by: kvazar | last post by:
What I am trying to create is basically a page with a bunch of multiple choice questions. Basically just like a test page. I am providing the code lower. All the questions that need to show as a part...
15
by: rhino | last post by:
I've put together a prototype of two-tiered CSS tabs that works really well in IE6, IE7, and FF2. It also works very well in Opera 9.27 _except_ that the placement of the lower tier of tabs is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.