Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Extracting data from XML file

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 08-03-2010
Member
 
Join Date: Dec 2009
Posts: 192
Extracting data from XML file

Hello guys !

I am new for the XML and need to access the data contents from the XML file.Is it possible to extract the data from the file.Is there any tools are available to access the data.If you have some solutions and compatible codes then please share with me.

Thanks.
Reply With Quote
  #2  
Old 08-03-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
Using XPath to Extract Data From XML.

You can access the data from XML documents using the concept of XML Path (XPath) .A node is a complete element within an XML document.

For example, if you have an XML Document and coded with -

<customers>
<customer id="1">
<companyName>Oracle corp</companyName>
</customer>
<customer id="2">
<companyName>Microsoft</companyName>
</customer>
</customers>


A node could be
<companyName>Oracle corp</companyName>
or
Oracle corp
or
id="1"
Reply With Quote
  #3  
Old 08-03-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Extract Data by Using the XML Source

if you are working with the windows application development tools then you can extract the data from the XML file using XML resources.In this scenario,you need to follow some steps-

1- Open the Integration Services project that includes the package you need.
2- From the Solution Explorer, double-click on the package and browse it.
3- Move to the Data Flow tab and click there now from the Toolbox, drag the XML source onto the design surface.
4- Make a Double click on the XML source.
5- From the XML Source Editor,select data access mode and set the following -
  • XML file location
  • XML file from variable
  • XML data from variable
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #4  
Old 08-03-2010
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
Extracting data from XML file

After selecting the XML file location,XML file from variable,XML data from variable file location and all ,you need to go further for advance changes to continue the steps -
  • Select Use inline schema to locate that the XML document exist within schema information.
  • To locate an external XML Schema definition language (XSD) schema for the XML file -
  • Locate the existing XSD file.
  • Create an XSD from the XML file.
  • Click on the Columns and update the values in the Output Column listed.
  • Now Click OK to save the changes.
Reply With Quote
  #5  
Old 08-03-2010
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,502
Extracting data from XML file

One more way to extract the data from XML document.The XML parser can be used to extract and use the data of the XML file.

The Implementation of the XML file would be as follows-

Code:
< GEN_FSM >

< State >

< Name >

POWERED

< /Name >

< Comment >

USB POWERED State

< /Comment >

< /State >

< State >

< Name >

DEFAULT

< /Name >

< Comment >

USB DEFAULT State

< /Comment >

< /State >
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Extracting data from XML file"
Thread Thread Starter Forum Replies Last Post
Error extracting wii iso file ‘file may be corrupt’ Damned 2 Windows Software 6 26-02-2011 10:26 AM
Extracting Selected Data from a txt file sidney786 Software Development 3 20-08-2010 02:07 AM
Extracting content from a scan file Emiliio Windows Software 5 03-02-2010 12:10 PM
how to create automatic self extracting zip file in vbscript vivekmohan Software Development 1 03-09-2009 10:10 AM
Extracting Data and Importing to Excel jaykf014 Software Development 3 08-10-2008 07:58 PM


All times are GMT +5.5. The time now is 05:17 AM.