XML Processing

More
11 years 9 months ago #3646 by cgetz
XML Processing was created by cgetz
C:\s0000001_e.xml
I have an attached file that I am trying to load using the XML part of the visual importer.

I can get the feilds by setting the table tag to siteData, however I am unable to read any of the values unless they are selected individually and with the tool I can only select one.

How should I be processing this file ?

The Site XML Tags and Attributes for this file can be found on dd.weatheroffice.ec.gc.ca/citypage_weath...cs/tags_table_e.html .

Thanks

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #3648 by admin
Replied by admin on topic Re: XML Processing
Which values are you trying to read?

I selected siteData and dateTime and I am able to see some data

Mike

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #3649 by cgetz
Replied by cgetz on topic Re: XML Processing
I guess I am not sure on how I need to process the file. Although I can see individual parts .. I had expected to read all of the values that are in the file .. similar to a .csv or .txt file.

How do I need to set this up ?

Thanks

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #3650 by admin
Replied by admin on topic Re: XML Processing
Your file has got complex structure
It has multiple levels
You can process some parts of it but not all parts at the the same time

This the structure we can process at the moment

<table>
<record>
<field1>value1<field1>
<field2>value2<field1>
<record>
<record>
<field1>value1<field1>
<field2>value2<field1>
<record>
<table>

Are you sure that you want all of it at the same time?

Mike

Mike
ETL Architect
The following user(s) said Thank You: cgetz

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #3651 by cgetz
Replied by cgetz on topic Re: XML Processing
It would be best to process it all as one file as it contains the actual and forecast data at the time the actual measurement was done.

Processing as seperate segments would get complex.

The data is similar to what is on www.weatheroffice.gc.ca/city/pages/ab-52_metric_e.html

Thanks

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #3652 by admin
Replied by admin on topic Re: XML Processing
Well

I understand it

But is is a web page and not the csv file you want to produce

If you provide us with the csv file you want to create we will have a look at what we can do about it

Mike

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.