Tuesday, January 15, 2013

SAMPLE XML

 1) E:\xmlreading\xpathnavigator\Catelogcd.xml


<?xml version="1.0" encoding="utf-8"?>
<catalog>
  <cd country="USA">
    <count>10</count>
    <title>Empire Burlesque</title>
    <artist>Bob Dylan</artist>
    <price>10.90</price>
  </cd>
  <cd country="UK">
    <count>5</count>
    <title>Hide your heart</title>
    <artist>Bonnie Tyler</artist>
    <price>10.0</price>
  </cd>
  <cd country="INDIA">
    <count>21</count>
    <title>NEWTITLE</title>
    <artist>NEW ARTIST</artist>
    <price>NEW PRICE</price>
  </cd>
</catalog>


2) E:\xmlreading\xml\Regxml.xml

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Details>
  <User Username="ravi" Password="ravi@1234" CreatedDate="6/22/2012 2:44:25 PM" />
  <User Username="varma" Password="varma@1234" CreatedDate="6/22/2012 3:11:08 PM" />
  <User Username="charn" Password="charn@1234" CreatedDate="6/22/2012 3:43:37 PM" />
  <User Username="varun" Password="varun@1234" CreatedDate="6/22/2012 4:23:30 PM" />
  <User Username="kumar" Password="kumar@1234" CreatedDate="6/22/2012 4:24:31 PM" />
  <User Username="ravi" Password="xyz" CreatedDate="11/16/2012 10:54:48 AM" />
  <User Username="ravi" Password="xyz" CreatedDate="11/16/2012 10:54:55 AM" />
  <User Username="ravi" Password="xyz" CreatedDate="11/16/2012 10:56:15 AM" />
</Details>

3) E:\xmlreading\xml\TemlConfig.xml

<?xml version="1.0" encoding="utf-8" ?>
<TMPL ID="CUSTOM2" CREATEDDATE="5/19/2011 4:28:48 PM" NAME="OMLCONTENT" TYPE="CONTROL" VAL="8" STYLE="POD">
  <LEVEL_1>
  <ni>
  <li HREF="!HREF!&amp;amp;det=1">!TITLE!</li>
  </ni>
  </LEVEL_1>
  <LEVEL_2>
  <headline detailhref="!HREF!&amp;amp;det=3">
  <img mode="float" alt="!TITLE!">
  <imgalt src="!DISPURL!"  width="50"/>
  </img>
  !TITLE!
  <br/>
  !DESC!
  </headline>
  </LEVEL_2>
  <LEVEL_3>
  <headline detailhref="!HREF!&amp;amp;det=3">
  <img mode="float" alt="!TITLE!">
  <imgalt src="!DISPURL!"  width="50"/>
  </img>
  !DESC!
  </headline>

  </LEVEL_3>
  <DEF>
  <ni>
  <li HREF="!HREF!&amp;amp;det=2">!TITLE!</li>
  </ni>
  </DEF>
</TMPL>


4) xml creation

  http://www.dotnetspider.com/resources/19581-Create-XML-File-Using-C-NET.aspx


5) xml blog

  http://neilkilbride.blogspot.in/search/label/XML

No comments:

Post a Comment