Help reading xml files

Hi All
I'm trying to read a xml file to get some data.
My xml file looks like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<Reporte>
    <reportYear>2004</reportYear>
    <client>
        <clientCode>4300000001</clientCode>
        <article>
            <articleCode>01101001         </articleCode>
            <articleLastDateBuy>2003-12-03</articleLastDateBuy>
            <articleAvgBuyQty>0</articleAvgBuyQty>
            <articleAvgBuyPeriod>1</articleAvgBuyPeriod>
        </article>
        <article>
            <articleCode>51645AE          </articleCode>
            <articleLastDateBuy>2003-12-09</articleLastDateBuy>
            <articleAvgBuyQty>1</articleAvgBuyQty>
            <articleAvgBuyPeriod>1</articleAvgBuyPeriod>
        </article>
        <article>
            <articleCode>C6578DE          </articleCode>
            <articleLastDateBuy>2003-12-09</articleLastDateBuy>
            <articleAvgBuyQty>1</articleAvgBuyQty>
            <articleAvgBuyPeriod>1</articleAvgBuyPeriod>
        </article>
    </client>
</reporte>Then I wrote this script to read it and I'm trying to show clientCode value as follows:
import java.io.File;
import org.w3c.dom.Document;
import org.w3c.dom.*;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
public class ReadXML {
     public static void main(String[] args) {
          try {
               DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
               DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
               Document doc = docBuilder.parse (new File("c:\\javap\\AR3\\ventas2003.xml"));
               // normalize text representation
               doc.getDocumentElement ().normalize ();
               System.out.println ("Root element of the doc is " + doc.getDocumentElement().getNodeName());
               NodeList listOfClients = doc.getElementsByTagName("client");
               int totalClients = listOfClients.getLength();
               System.out.println("Total no of clients : " + totalClients);
               for(int s = 0; s < listOfClients.getLength(); s++) {
                    Node ClientNode = listOfClients.item(s);
                    NodeList clientNodeList = ClientNode.getChildNodes();
                    for (int t = 0; t < clientNodeList.getLength(); t++) {
                         System.out.println("t:" + t + " Value: " + ((Node)clientNodeList.item(t)).getNodeValue().trim());                    
          } catch (SAXParseException err) {
               System.out.println ("** Parsing error" + ", line " + err.getLineNumber () + ", uri " + err.getSystemId ());
               System.out.println(" " + err.getMessage ());
          } catch (SAXException e) {
               Exception x = e.getException ();
               ((x == null) ? e : x).printStackTrace ();
          } catch (Throwable t) {
               t.printStackTrace ();
}But when I run this code I get NullPointerException in the line where I tried to show node value...
Where I'm wrong ?
Thanks in advance
<xl>

Hi
I'm now trying with SAX but I still have problems.
I tried this little first code:
import java.io.*;
import org.xml.sax.*;
import org.xml.sax.helpers.DefaultHandler;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
public class EchoXML extends DefaultHandler {
     public static void main(String[] args) {
        DefaultHandler handler = new EchoXML();
        SAXParserFactory factory = SAXParserFactory.newInstance();
        try {
            SAXParser saxParser = factory.newSAXParser();
            saxParser.parse( new File("c:\\javap\\ARVi3\\ventas2003.xml"), handler );
        } catch (Throwable t) {
            t.printStackTrace();
        System.exit(0);
     private void emit(String s) throws SAXException {
               System.out.println(s);
     public void startDocument() throws SAXException {
        emit("<?xml version='1.0' encoding='UTF-8'?>");
        nl();
    public void endDocument() throws SAXException {
            nl();           
     public void startElement(String namespaceURI,
                             String sName, // simple name (localName)
                             String qName, // qualified name
                             Attributes attrs)
    throws SAXException
        nl(); emit("ELEMENT: ");
                  emit("<"+sName);
                  if (attrs != null) {
                      for (int i = 0; i < attrs.getLength(); i++) {
                          emit(" ");
                          emit(attrs.getQName(i) + "=\"" + attrs.getValue(i) + "\"");
                          nl();
                          emit("   ATTR: ");
                          emit(attrs.getLocalName(i));
                          emit("\t\"");
                          emit(attrs.getValue(i));
                          emit("\"");
                  if (attrs.getLength() > 0) nl();
                  emit(">");
    public void endElement(String namespaceURI,
                           String sName, // simple name
                           String qName  // qualified name
    throws SAXException
        emit("</"+sName+">");
     public void characters(char buf[], int offset, int len)
    throws SAXException
        String s = new String(buf, offset, len);
        emit(s);
     private void nl() throws SAXException {
          System.out.println("");
//But I can't see tag names, I receive <>2004-02-12<>...
Also, I want to know how shall I do to retrieve a specific tags and their childs...
Thanks in advance
<xl>

Similar Messages

  • Help reading XML file

    Hello Folks - really appreciate your help here,
      I am trying to read a Bill of Material XML file a short version is below:
    I am having an issue reading down to the BillOfMaterial tag and gathering its attribute values.
    Please note the ReferenceDesignators under BillOfMaterial is Optional
    Also, there are two tags with the name AdditionalAttributes:
                One under tag Item and the other under tag BillOfMaterial - I point this out becuase when I use the "FindNode" it only finds the one under Item
    Thank you in advance;
    [email protected]
      <?xml version="1.0" encoding="UTF-8" ?>
      <?pdx_version "1.0"?>
      <?generated_by Arena Solutions/Arena Solutions/ver 1.0/1?>
      <!DOCTYPE ProductDataeXchangePackage (View Source for full doctype...)>
    - <ProductDataeXchangePackage thisDocumentIdentifier="_10719493" thisDocumentGenerationDateTime="2011-06-16T08:02:03-08:00" thisDocumentModificationDateTime="2011-06-16T08:02:03-08:00" originatedByContactName="AUI Demo ERP Integration Adapter" packageType="Arena Solutions ProductDataeXchangePackage" dataSource="Arena Solutions" thisDocumentCopyright="Arena Solutions">
    - <Items>
    - <Item itemIdentifier="830-00009" itemUniqueIdentifier="IVI147112977" globalLifeCyclePhaseCode="Design" globalProductTypeCode="Printed Circuit Board Assembly" revisionIdentifier="F" proprietaryProductFamily="BlueFin" category="Printed Circuit Board Assembly" globalProductUnitOfMeasureCode="each" revisionReleasedDate="2011-04-13T11:19:44-08:00" ownerName="Bret D Lobree" isTopLevel="Yes" description="BlueFin Rear Board Assy">
    - <AdditionalAttributes groupLabel="Version Information">
      <AdditionalAttribute name="Version Notes" value="" dataType="String" />
      <AdditionalAttribute name="Change Number" value="ECO-000031" dataType="String" />
      <AdditionalAttribute name="Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Effective Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Material Effectivity Date" value="2011-04-13T11:19:44-08:00" dataType="String" />
      <AdditionalAttribute name="Item Creation Date" value="2008-03-05T07:46:45-08:00" dataType="String" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Permanent Link Information">
      <AdditionalAttribute name="Item Specification Summary" value="https://app.bom.com/a/xxxxx?v=spec.summary" dataType="UriReference" />
      </AdditionalAttributes>
    - <BillOfMaterial>
    - <BillOfMaterialItem revisionIdentifier="B" billOfMaterialItemIdentifier="250-00012" billOfMaterialItemUniqueIdentifier="IVI139971927" itemQuantity="1" globalProductQuantityTypeCode="PerAssembly" globalProductQuantityTypeCodeOther="" notes="" description="BlueFin Pro / Rear CT Board Panel" proprietarySequenceIdentifier="46324364">
    - <AdditionalAttributes groupLabel="BOM Information">
      <AdditionalAttribute name="Line Number" value="1" dataType="Float" />
      </AdditionalAttributes>
      </BillOfMaterialItem>
    - <BillOfMaterialItem revisionIdentifier="D" billOfMaterialItemIdentifier="310-00004" billOfMaterialItemUniqueIdentifier="IVI1073298797" itemQuantity="5" globalProductQuantityTypeCode="PerAssembly" globalProductQuantityTypeCodeOther="" notes="SURFACE MOUNT" description="0.1uF Ceramic Chip Capacitor, 0603, Ceramic, .1uF, 10%" proprietarySequenceIdentifier="46324347">
    - <AdditionalAttributes groupLabel="BOM Information">
      <AdditionalAttribute name="Line Number" value="2" dataType="Float" />
      </AdditionalAttributes>
    - <ReferenceDesignators>
      <ReferenceDesignator referenceDesignatorName="C15,C6,C10-12" />
      </ReferenceDesignators>
      </BillOfMaterialItem>
    - <ApprovedManufacturerList>
    - <ApprovedManufacturerListItem manufacturerPartIdentifier="FLX-AUI-8991PCB" manufacturerPartUniqueIdentifier="IMI147112977-10403540" manufacturerContactUniqueIdentifier="ECI951230" globalManufacturerPartStatusCode="Approved" globalPreferredStatusCode="Active Production" description="AUI Board Assembly" manufacturedBy="Flextronics">
    - <AdditionalAttributes groupLabel="Supplier Item Type">
      <AdditionalAttribute name="Manufacturer Item" value="Yes" dataType="Boolean" />
      <AdditionalAttribute name="Vendor Item" value="Yes" dataType="Boolean" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Active Supplier Part Information">
      <AdditionalAttribute name="productionSupplierPartUniqueIdentifier" value="ISI10403540" dataType="String" />
      </AdditionalAttributes>
      </ApprovedManufacturerListItem>
    - <ApprovedManufacturerListItem manufacturerPartIdentifier="JB-812-91111A" manufacturerPartUniqueIdentifier="IMI147112977-10403541" manufacturerContactUniqueIdentifier="ECI951076" globalManufacturerPartStatusCode="Approved" globalPreferredStatusCode="Active Prototype" description="Board Assy" manufacturedBy="Jabil">
    - <AdditionalAttributes groupLabel="Supplier Item Type">
      <AdditionalAttribute name="Manufacturer Item" value="Yes" dataType="Boolean" />
      <AdditionalAttribute name="Vendor Item" value="Yes" dataType="Boolean" />
      </AdditionalAttributes>
      </ApprovedManufacturerList>
      </Item>
    - <Item itemIdentifier="250-00012" itemUniqueIdentifier="IVI139971927" globalLifeCyclePhaseCode="Design" globalProductTypeCode="Printed Circuit Board" revisionIdentifier="B" proprietaryProductFamily="BlueFin" category="Printed Circuit Board" globalProductUnitOfMeasureCode="each" revisionReleasedDate="2008-03-14T12:26:05-08:00" ownerName="Wendy Snow" isTopLevel="No" description="BlueFin Pro / Rear CT Board Panel">
    - <AdditionalAttributes groupLabel="Version Information">
      <AdditionalAttribute name="Version Notes" value="" dataType="String" />
      <AdditionalAttribute name="Change Number" value="ECO-000003" dataType="String" />
      <AdditionalAttribute name="Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Effective Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Material Effectivity Date" value="2008-03-14T12:26:05-08:00" dataType="String" />
      <AdditionalAttribute name="Item Creation Date" value="2008-03-05T07:46:45-08:00" dataType="String" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Permanent Link Information">
      <AdditionalAttribute name="Item Specification Summary" value="https://app.bom.com/a/xxxxxxxxhttps://app.bom.com/a/xxxxxxxx?v=spec.summary?v=spec.summary" dataType="UriReference" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Category Information">
      <AdditionalAttribute name="Category Name" value="Printed Circuit Board" dataType="String" />
      <AdditionalAttribute name="Category Path" value="Part\Electrical\Printed Circuit Board" dataType="String" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Arena Solutions Custom Attributes">
      <AdditionalAttribute name="Arena Solutions Description" value="BlueFin Pro / Rear CT Board Panel" dataType="String" />
      <AdditionalAttribute name="Product Line" value="BlueFin" dataType="String" />
      <AdditionalAttribute name="Legacy Phase" value="In Design" dataType="String" />
      </AdditionalAttributes>
      </Item>
    - <Item itemIdentifier="310-00004" itemUniqueIdentifier="IVI1073298797" globalLifeCyclePhaseCode="Design" globalProductTypeCode="Capacitor" revisionIdentifier="D" proprietaryProductFamily="BlueFin" category="Capacitor" globalProductUnitOfMeasureCode="each" revisionReleasedDate="2011-06-07T06:29:34-08:00" ownerName="Jason Bookbinder" isTopLevel="No" description="0.1uF Ceramic Chip Capacitor, 0603">
    - <AdditionalAttributes groupLabel="Version Information">
      <AdditionalAttribute name="Version Notes" value="" dataType="String" />
      <AdditionalAttribute name="Change Number" value="BCV1039913230" dataType="String" />
      <AdditionalAttribute name="Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Effective Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Material Effectivity Date" value="2011-06-07T06:29:34-08:00" dataType="String" />
      <AdditionalAttribute name="Item Creation Date" value="2008-03-05T07:46:36-08:00" dataType="String" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Permanent Link Information">
      <AdditionalAttribute name="Item Specification Summary" value="https://app.bom.com/a/xxxxxxxhttps://app.bom.com/a/xxxxxxx?v=spec.summary?v=spec.summary" dataType="UriReference" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Category Information">
      <AdditionalAttribute name="Category Name" value="Capacitor" dataType="String" />
      <AdditionalAttribute name="Category Path" value="Part\Electrical\Capacitor" dataType="String" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Arena Solutions Custom Attributes">
      <AdditionalAttribute name="Arena Solutions Description" value="0.1uF Ceramic Chip Capacitor, 0603, Ceramic, .1uF, 10%" dataType="String" />
      <AdditionalAttribute name="Capacitance" value=".1uF" dataType="String" />
      <AdditionalAttribute name="Capacitor Type" value="Ceramic" dataType="String" />
      <AdditionalAttribute name="Package" value="0603" dataType="String" />
      <AdditionalAttribute name="Packaging" value="T&R" dataType="String" />
      <AdditionalAttribute name="Product Line" value="BlueFin" dataType="String" />
      <AdditionalAttribute name="Tolerance" value="10%" dataType="String" />
      <AdditionalAttribute name="Voltage" value="12V" dataType="String" />
      <AdditionalAttribute name="Legacy Phase" value="In Design" dataType="String" />
      <AdditionalAttribute name="File URL" value="" dataType="String" />
      </AdditionalAttributes>
      </Item>
      </Items>
    - <ManufacturerParts>
    - <ManufacturerPart manufacturerPartIdentifier="FLX-AUI-8991PCB" manufacturerPartUniqueIdentifier="IMI147112977-10403540" manufacturerName="Flextronics" manufacturerContactUniqueIdentifier="ECI951230" referenceNotes="new description in order to demo" manufacturerPartType="Part" description="AUI Board Assembly" isTopLevel="No">
    - <ApprovedSupplierList>
      <ApprovedSupplierListItem supplierPartIdentifier="FLX-AUI-8991PCB" supplierPartUniqueIdentifier="ISI10403540" supplierPartContactUniqueIdentifier="ECI951230" globalSupplierPartStatusCode="Approved" comments="3/23/2000" suppliedBy="Flextronics" />
      </ApprovedSupplierList>
      </ManufacturerPart>
    - <ManufacturerPart manufacturerPartIdentifier="JB-812-91111A" manufacturerPartUniqueIdentifier="IMI147112977-10403541" manufacturerName="Jabil" manufacturerContactUniqueIdentifier="ECI951076" referenceNotes="" manufacturerPartType="Part" description="Board Assy" isTopLevel="No">
    - <ApprovedSupplierList>
      <ApprovedSupplierListItem supplierPartIdentifier="JB-812-91111A" supplierPartUniqueIdentifier="ISI10403541" supplierPartContactUniqueIdentifier="ECI951076" globalSupplierPartStatusCode="Approved" comments="4/17/2000" suppliedBy="Jabil" />
      </ApprovedSupplierList>
      </ManufacturerPart>
    - <SupplierParts>
      <SupplierPart supplierPartIdentifier="FLX-AUI-8991PCB" supplierPartUniqueIdentifier="ISI10403540" supplierName="Flextronics" supplierContactUniqueIdentifier="ECI951230" referenceNotes="new description in order to demo" supplierPartType="Part" description="AUI Board Assembly" isTopLevel="No" />
      <SupplierPart supplierPartIdentifier="JB-812-91111A" supplierPartUniqueIdentifier="ISI10403541" supplierName="Jabil" supplierContactUniqueIdentifier="ECI951076" referenceNotes="" supplierPartType="Part" description="Board Assy" isTopLevel="No" />
      <SupplierPart supplierPartIdentifier="SMC-823-0290" supplierPartUniqueIdentifier="ISI10403542" supplierName="SMC" supplierContactUniqueIdentifier="ECI951232" referenceNotes="" supplierPartType="Part" description="SMC-AUI Board" isTopLevel="No" />
      <SupplierPart supplierPartIdentifier="823-0290" supplierPartUniqueIdentifier="ISI10403543" supplierName="SanMina SCI" supplierContactUniqueIdentifier="ECI951233" referenceNotes="" supplierPartType="Part" description="SM Board, Adv Uw Imaging" isTopLevel="No" />
      </SupplierParts>
    - <Contacts>
    - <Contact contactIdentifier="" contactUniqueIdentifier="ECI951230" contactName="Karen Weiss" addressLine1="" addressLine2="" cityName="" regionName="" globalCountryCode="" nationalPostalCode="" telephoneNumber="" facsimileNumber="" department="Account Representative" businessName="Flextronics" emailAddress="testemail@[email protected]" universalResourceIdentifier="" contactStatus="Unrated" isTopLevel="No">
    - <AdditionalAttributes groupLabel="Arena Solutions Custom Attributes">
      <AdditionalAttribute name="Country of Origin" value="" dataType="String" />
      </AdditionalAttributes>
      </Contact>
    - <Contact contactIdentifier="" contactUniqueIdentifier="ECI951076" contactName="Jabil" addressLine1="" addressLine2="" cityName="" regionName="" globalCountryCode="" nationalPostalCode="" telephoneNumber="" facsimileNumber="" department="" businessName="Jabil" emailAddress="" universalResourceIdentifier="" contactStatus="Unrated" isTopLevel="No">
    - <AdditionalAttributes groupLabel="Arena Solutions Custom Attributes">
      <AdditionalAttribute name="Country of Origin" value="" dataType="String" />
      </AdditionalAttributes>
      </Contact>
      </Contacts>
      </ProductDataeXchangePackage>

    Hello Folks - really appreciate your help here,
      I am trying to read a Bill of Material XML file a short version is below:
    I am having an issue reading down to the BillOfMaterial tag and gathering its attribute values.
    Please note the ReferenceDesignators under BillOfMaterial is Optional
    Also, there are two tags with the name AdditionalAttributes:
                One under tag Item and the other under tag BillOfMaterial - I point this out becuase when I use the "FindNode" it only finds the one under Item
    Thank you in advance;
    [email protected]
      <?xml version="1.0" encoding="UTF-8" ?>
      <?pdx_version "1.0"?>
      <?generated_by Arena Solutions/Arena Solutions/ver 1.0/1?>
      <!DOCTYPE ProductDataeXchangePackage (View Source for full doctype...)>
    - <ProductDataeXchangePackage thisDocumentIdentifier="_10719493" thisDocumentGenerationDateTime="2011-06-16T08:02:03-08:00" thisDocumentModificationDateTime="2011-06-16T08:02:03-08:00" originatedByContactName="AUI Demo ERP Integration Adapter" packageType="Arena Solutions ProductDataeXchangePackage" dataSource="Arena Solutions" thisDocumentCopyright="Arena Solutions">
    - <Items>
    - <Item itemIdentifier="830-00009" itemUniqueIdentifier="IVI147112977" globalLifeCyclePhaseCode="Design" globalProductTypeCode="Printed Circuit Board Assembly" revisionIdentifier="F" proprietaryProductFamily="BlueFin" category="Printed Circuit Board Assembly" globalProductUnitOfMeasureCode="each" revisionReleasedDate="2011-04-13T11:19:44-08:00" ownerName="Bret D Lobree" isTopLevel="Yes" description="BlueFin Rear Board Assy">
    - <AdditionalAttributes groupLabel="Version Information">
      <AdditionalAttribute name="Version Notes" value="" dataType="String" />
      <AdditionalAttribute name="Change Number" value="ECO-000031" dataType="String" />
      <AdditionalAttribute name="Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Effective Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Material Effectivity Date" value="2011-04-13T11:19:44-08:00" dataType="String" />
      <AdditionalAttribute name="Item Creation Date" value="2008-03-05T07:46:45-08:00" dataType="String" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Permanent Link Information">
      <AdditionalAttribute name="Item Specification Summary" value="https://app.bom.com/a/xxxxx?v=spec.summary" dataType="UriReference" />
      </AdditionalAttributes>
    - <BillOfMaterial>
    - <BillOfMaterialItem revisionIdentifier="B" billOfMaterialItemIdentifier="250-00012" billOfMaterialItemUniqueIdentifier="IVI139971927" itemQuantity="1" globalProductQuantityTypeCode="PerAssembly" globalProductQuantityTypeCodeOther="" notes="" description="BlueFin Pro / Rear CT Board Panel" proprietarySequenceIdentifier="46324364">
    - <AdditionalAttributes groupLabel="BOM Information">
      <AdditionalAttribute name="Line Number" value="1" dataType="Float" />
      </AdditionalAttributes>
      </BillOfMaterialItem>
    - <BillOfMaterialItem revisionIdentifier="D" billOfMaterialItemIdentifier="310-00004" billOfMaterialItemUniqueIdentifier="IVI1073298797" itemQuantity="5" globalProductQuantityTypeCode="PerAssembly" globalProductQuantityTypeCodeOther="" notes="SURFACE MOUNT" description="0.1uF Ceramic Chip Capacitor, 0603, Ceramic, .1uF, 10%" proprietarySequenceIdentifier="46324347">
    - <AdditionalAttributes groupLabel="BOM Information">
      <AdditionalAttribute name="Line Number" value="2" dataType="Float" />
      </AdditionalAttributes>
    - <ReferenceDesignators>
      <ReferenceDesignator referenceDesignatorName="C15,C6,C10-12" />
      </ReferenceDesignators>
      </BillOfMaterialItem>
    - <ApprovedManufacturerList>
    - <ApprovedManufacturerListItem manufacturerPartIdentifier="FLX-AUI-8991PCB" manufacturerPartUniqueIdentifier="IMI147112977-10403540" manufacturerContactUniqueIdentifier="ECI951230" globalManufacturerPartStatusCode="Approved" globalPreferredStatusCode="Active Production" description="AUI Board Assembly" manufacturedBy="Flextronics">
    - <AdditionalAttributes groupLabel="Supplier Item Type">
      <AdditionalAttribute name="Manufacturer Item" value="Yes" dataType="Boolean" />
      <AdditionalAttribute name="Vendor Item" value="Yes" dataType="Boolean" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Active Supplier Part Information">
      <AdditionalAttribute name="productionSupplierPartUniqueIdentifier" value="ISI10403540" dataType="String" />
      </AdditionalAttributes>
      </ApprovedManufacturerListItem>
    - <ApprovedManufacturerListItem manufacturerPartIdentifier="JB-812-91111A" manufacturerPartUniqueIdentifier="IMI147112977-10403541" manufacturerContactUniqueIdentifier="ECI951076" globalManufacturerPartStatusCode="Approved" globalPreferredStatusCode="Active Prototype" description="Board Assy" manufacturedBy="Jabil">
    - <AdditionalAttributes groupLabel="Supplier Item Type">
      <AdditionalAttribute name="Manufacturer Item" value="Yes" dataType="Boolean" />
      <AdditionalAttribute name="Vendor Item" value="Yes" dataType="Boolean" />
      </AdditionalAttributes>
      </ApprovedManufacturerList>
      </Item>
    - <Item itemIdentifier="250-00012" itemUniqueIdentifier="IVI139971927" globalLifeCyclePhaseCode="Design" globalProductTypeCode="Printed Circuit Board" revisionIdentifier="B" proprietaryProductFamily="BlueFin" category="Printed Circuit Board" globalProductUnitOfMeasureCode="each" revisionReleasedDate="2008-03-14T12:26:05-08:00" ownerName="Wendy Snow" isTopLevel="No" description="BlueFin Pro / Rear CT Board Panel">
    - <AdditionalAttributes groupLabel="Version Information">
      <AdditionalAttribute name="Version Notes" value="" dataType="String" />
      <AdditionalAttribute name="Change Number" value="ECO-000003" dataType="String" />
      <AdditionalAttribute name="Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Effective Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Material Effectivity Date" value="2008-03-14T12:26:05-08:00" dataType="String" />
      <AdditionalAttribute name="Item Creation Date" value="2008-03-05T07:46:45-08:00" dataType="String" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Permanent Link Information">
      <AdditionalAttribute name="Item Specification Summary" value="https://app.bom.com/a/xxxxxxxxhttps://app.bom.com/a/xxxxxxxx?v=spec.summary?v=spec.summary" dataType="UriReference" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Category Information">
      <AdditionalAttribute name="Category Name" value="Printed Circuit Board" dataType="String" />
      <AdditionalAttribute name="Category Path" value="Part\Electrical\Printed Circuit Board" dataType="String" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Arena Solutions Custom Attributes">
      <AdditionalAttribute name="Arena Solutions Description" value="BlueFin Pro / Rear CT Board Panel" dataType="String" />
      <AdditionalAttribute name="Product Line" value="BlueFin" dataType="String" />
      <AdditionalAttribute name="Legacy Phase" value="In Design" dataType="String" />
      </AdditionalAttributes>
      </Item>
    - <Item itemIdentifier="310-00004" itemUniqueIdentifier="IVI1073298797" globalLifeCyclePhaseCode="Design" globalProductTypeCode="Capacitor" revisionIdentifier="D" proprietaryProductFamily="BlueFin" category="Capacitor" globalProductUnitOfMeasureCode="each" revisionReleasedDate="2011-06-07T06:29:34-08:00" ownerName="Jason Bookbinder" isTopLevel="No" description="0.1uF Ceramic Chip Capacitor, 0603">
    - <AdditionalAttributes groupLabel="Version Information">
      <AdditionalAttribute name="Version Notes" value="" dataType="String" />
      <AdditionalAttribute name="Change Number" value="BCV1039913230" dataType="String" />
      <AdditionalAttribute name="Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Effective Version Shared" value="Yes" dataType="String" />
      <AdditionalAttribute name="Material Effectivity Date" value="2011-06-07T06:29:34-08:00" dataType="String" />
      <AdditionalAttribute name="Item Creation Date" value="2008-03-05T07:46:36-08:00" dataType="String" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Permanent Link Information">
      <AdditionalAttribute name="Item Specification Summary" value="https://app.bom.com/a/xxxxxxxhttps://app.bom.com/a/xxxxxxx?v=spec.summary?v=spec.summary" dataType="UriReference" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Category Information">
      <AdditionalAttribute name="Category Name" value="Capacitor" dataType="String" />
      <AdditionalAttribute name="Category Path" value="Part\Electrical\Capacitor" dataType="String" />
      </AdditionalAttributes>
    - <AdditionalAttributes groupLabel="Arena Solutions Custom Attributes">
      <AdditionalAttribute name="Arena Solutions Description" value="0.1uF Ceramic Chip Capacitor, 0603, Ceramic, .1uF, 10%" dataType="String" />
      <AdditionalAttribute name="Capacitance" value=".1uF" dataType="String" />
      <AdditionalAttribute name="Capacitor Type" value="Ceramic" dataType="String" />
      <AdditionalAttribute name="Package" value="0603" dataType="String" />
      <AdditionalAttribute name="Packaging" value="T&R" dataType="String" />
      <AdditionalAttribute name="Product Line" value="BlueFin" dataType="String" />
      <AdditionalAttribute name="Tolerance" value="10%" dataType="String" />
      <AdditionalAttribute name="Voltage" value="12V" dataType="String" />
      <AdditionalAttribute name="Legacy Phase" value="In Design" dataType="String" />
      <AdditionalAttribute name="File URL" value="" dataType="String" />
      </AdditionalAttributes>
      </Item>
      </Items>
    - <ManufacturerParts>
    - <ManufacturerPart manufacturerPartIdentifier="FLX-AUI-8991PCB" manufacturerPartUniqueIdentifier="IMI147112977-10403540" manufacturerName="Flextronics" manufacturerContactUniqueIdentifier="ECI951230" referenceNotes="new description in order to demo" manufacturerPartType="Part" description="AUI Board Assembly" isTopLevel="No">
    - <ApprovedSupplierList>
      <ApprovedSupplierListItem supplierPartIdentifier="FLX-AUI-8991PCB" supplierPartUniqueIdentifier="ISI10403540" supplierPartContactUniqueIdentifier="ECI951230" globalSupplierPartStatusCode="Approved" comments="3/23/2000" suppliedBy="Flextronics" />
      </ApprovedSupplierList>
      </ManufacturerPart>
    - <ManufacturerPart manufacturerPartIdentifier="JB-812-91111A" manufacturerPartUniqueIdentifier="IMI147112977-10403541" manufacturerName="Jabil" manufacturerContactUniqueIdentifier="ECI951076" referenceNotes="" manufacturerPartType="Part" description="Board Assy" isTopLevel="No">
    - <ApprovedSupplierList>
      <ApprovedSupplierListItem supplierPartIdentifier="JB-812-91111A" supplierPartUniqueIdentifier="ISI10403541" supplierPartContactUniqueIdentifier="ECI951076" globalSupplierPartStatusCode="Approved" comments="4/17/2000" suppliedBy="Jabil" />
      </ApprovedSupplierList>
      </ManufacturerPart>
    - <SupplierParts>
      <SupplierPart supplierPartIdentifier="FLX-AUI-8991PCB" supplierPartUniqueIdentifier="ISI10403540" supplierName="Flextronics" supplierContactUniqueIdentifier="ECI951230" referenceNotes="new description in order to demo" supplierPartType="Part" description="AUI Board Assembly" isTopLevel="No" />
      <SupplierPart supplierPartIdentifier="JB-812-91111A" supplierPartUniqueIdentifier="ISI10403541" supplierName="Jabil" supplierContactUniqueIdentifier="ECI951076" referenceNotes="" supplierPartType="Part" description="Board Assy" isTopLevel="No" />
      <SupplierPart supplierPartIdentifier="SMC-823-0290" supplierPartUniqueIdentifier="ISI10403542" supplierName="SMC" supplierContactUniqueIdentifier="ECI951232" referenceNotes="" supplierPartType="Part" description="SMC-AUI Board" isTopLevel="No" />
      <SupplierPart supplierPartIdentifier="823-0290" supplierPartUniqueIdentifier="ISI10403543" supplierName="SanMina SCI" supplierContactUniqueIdentifier="ECI951233" referenceNotes="" supplierPartType="Part" description="SM Board, Adv Uw Imaging" isTopLevel="No" />
      </SupplierParts>
    - <Contacts>
    - <Contact contactIdentifier="" contactUniqueIdentifier="ECI951230" contactName="Karen Weiss" addressLine1="" addressLine2="" cityName="" regionName="" globalCountryCode="" nationalPostalCode="" telephoneNumber="" facsimileNumber="" department="Account Representative" businessName="Flextronics" emailAddress="testemail@[email protected]" universalResourceIdentifier="" contactStatus="Unrated" isTopLevel="No">
    - <AdditionalAttributes groupLabel="Arena Solutions Custom Attributes">
      <AdditionalAttribute name="Country of Origin" value="" dataType="String" />
      </AdditionalAttributes>
      </Contact>
    - <Contact contactIdentifier="" contactUniqueIdentifier="ECI951076" contactName="Jabil" addressLine1="" addressLine2="" cityName="" regionName="" globalCountryCode="" nationalPostalCode="" telephoneNumber="" facsimileNumber="" department="" businessName="Jabil" emailAddress="" universalResourceIdentifier="" contactStatus="Unrated" isTopLevel="No">
    - <AdditionalAttributes groupLabel="Arena Solutions Custom Attributes">
      <AdditionalAttribute name="Country of Origin" value="" dataType="String" />
      </AdditionalAttributes>
      </Contact>
      </Contacts>
      </ProductDataeXchangePackage>

  • FM to read XML files from Application server in ECC5.0

    Hi All,
    We need to pick up an XML file from Application server/FTP server. The requirement is to parse the XML file and process it to create material master. SAP provides standard function modules to read XML files.
    Now we need to read the XML file contents of MM01 and upload into SAP Data Base through BAPI
    I need to know about the Function modules to read XML files from Application Server and also about the FM's that will update the Date base tables with the data obtained form XML files.
    Regards
    Prathima

    Parsing XML data:
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
    or alternatively check out ABAP online help for "CALL TRANSFORMATION".
    For creating the material master look at BAPI_STANDARDMATERIAL_CREATE.
    Thomas

  • Problem  while reading XML file from Aplication server(Al11)

    Hi Experts
    I am facing a problem while  reading XML file from Aplication server  using open data set.
    OPEN DATASET v_dsn IN BINARY MODE FOR INPUT.
    IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      READ DATASET v_dsn INTO v_rec.
    WHILE sy-subrc <> 0.
      ENDWHILE.
      CLOSE DATASET v_dsn.
    The XML file contains the details from an IDOC number  ,  the expected output  is XML file giving  all the segments details in a single page and send the user in lotus note as an attachment, But in the  present  output  after opening the attachment  i am getting a single XML file  which contains most of the segments ,but in the bottom part it is giving  the below error .
    - <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803<The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/SHPORD_0080005842.xml'.
    /SPAN></NTEND>
      <NTENZ>000000</NTENZ>
    for all the xml  its giving the error in bottom part ,  but once we open the source code and  if we saved  in system without changing anything the file giving the xml file without any error in that .
    could any one can help to solve this issue .

    Hi Oliver
    Thanx for your reply.
    see the latest output
    - <E1EDT13 SEGMENT="1">
      <QUALF>003</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    - <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803<The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/~1922011.xml'.
    /SPAN></NTEND>
      <NTENZ>000000</NTENZ>
    E1EDT13 with QUALF>003 and  <E1EDT13 SEGMENT="1">
    with   <QUALF>001 having almost same segment data . but  E1EDT13 with QUALF>003  is populating all segment data
    properly ,but E1EDT13 with QUALF>001  is giving in between.

  • Reading XML file from UNIX

    I am reading XML file from unix using :
    FORM read_file USING p_name.
      DO.
        READ DATASET p_name INTO WXML_LINE LENGTH LENG.
      ENDDO.
    Then I am using subroutine below where I get a short dump at
      case X_NODE->get_type( ).
    FORM get_data tables   Y_CAPXML   structure GV_CAPXML
                  using value(x_node) type ref to if_ixml_node.
      data: INDENT      type i.
      data: PTEXT       type ref to if_ixml_text.
      data: STRING      type string.
      data: TEMP_STRING(100).
      case X_NODE->get_type( ).
        when if_ixml_node=>co_node_element.
          STRING = X_NODE->get_name( ).
          GV_NODETEXT = STRING.
        when if_ixml_node=>co_node_text.
          PTEXT ?= X_NODE->query_interface( IXML_IID_TEXT ).
          if PTEXT->ws_only( ) is initial.
            STRING = X_NODE->get_value( ).
            case GV_NODETEXT.
              when 'NIIN'.
                move STRING to GV_CAPXML-NIIN.
              when 'FED_x0020_STOCK_x0020_CLASS'.
                move STRING to GV_CAPXML-fed_stock_class.
              when 'DODIC'.
                move STRING to GV_CAPXML-dodic.
             endcase.
    The text for the short dump is : STACK_STATE_NO_ROLL_MEMORY
    Can someone please explain what is it mean.
    Thanks.

    May be this blog can help:
    <a href="/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach for Blog</a>
    Sri

  • How to read .xml file from embedded .swf(flash output) in captivate

    I have been trying to read .xml file from the .swf (Flash output) that is embedded within the captivate file but no luck yet . Please if anyone got any clue on how get this thing done using Action script 3.0 then let me know. I am using Adobe Captivate 5.5 at present and Flash CS 5.5.
    I am well aware about how to read .xml file through action script 3.0 in flash but when insert the same flash in captivate and publish nothing comes in captivate output. I would higly appreciate if anyone could help me out with that.
    Here is is graphical demonstration of my query :
    Message was edited by: captainmkv

    Hi Captainmkv,
    Does the information in this post cover what you're trying to do: http://forums.adobe.com/message/5081928#5081928
    Tristan,

  • UCCX Reading XML file hosted on IIS web server

    hi guys,
    i have a customer on CCX 8.5 environment and they have a .NET application running on an IIS web server. As part of this .NET application, the app produce an XML file.
    My questions is
    "Can CCX read XML file that is hosted externally on IIS web server rather than parsing the XML file on CCX document repository?"
    All of the examples of XML parsing points to the XML file in document repository.
    Any pointers to links and documentation/example on how to do this would be greatly appreciated.
    If this is not achievable, if you could kindly suggest a different way of doing it too would be greatly appreciated.
    Thanks in advance,
    Daniel

    Hi,
    to be quite honest with you, I don't know anything about Sharepoint - so I am afraid I cannot help you with its XML editing capabilities. XML is just a well formed text file that follows some logical rules, so no additional application is required for editing, in fact, I always encourage everybody to use Notepad/Textpad/ to read and edit XML files. Of course, if it's not possible, you will find a great number of various user friendly XML editing applications.
    A UCCX script will normally access an XML using the Create URL Document step and then, using the Get XML Document data step with the help of an XPath expression, will filter out the necessary information from the XML document.
    The protocols used are standard and well known, including HTTP and XPath (and XML itself). So it does not really matter what kind of HTTP server serves the XML file, IIS is just an option.
    Examples may be found in the Scripting guides for your particular UCCX version.
    HTH
    G.

  • How to read xml file as shown below.

    Hello,
    I am using flash builder 4 and currently working on implementing AIR application.
    I need to read xml file data.
    Normal xml files are easy to read and i am much more aware of it.
    But can any one have idea how to read XML file which is given below.
    <node>
    <key>ID</key>
    <integer>1</integer>
    <key>Name</key>
    <string>Dhwani</string>
    <key>Postno</key>
    <integer>20</integer>
    <key>deskname</key>
    <string>flex</string>
    <key>empid</key>
    <integer>25</integer>
    <key>projectname</key>
    <string>abc</string>
    </node>
    Here i have xml file in form of key value pair. <key> node shows name of the key and after that <integer> or <string> node are the value for that specific key.
    if i select node.key then it shows me all the keys. and from that i cant make out what is the value for key ID.
    Is there any way to take first node and then second. i mean first i ll take value of key and store it into some arraycollection. and then value will be stored.
    Any help is appreciated.. Looking for positive reply.
    Thanks
    Dhwani

    There are different methods to access XML data which have pro's and cons. Let us know more about what you want to do and we can help you.

  • How to read XML file and write into another XML file

    Hi all, I am new to JAVAXML.
    My problem is I have to read one XML file and take some Nodes from that and write these nodes into another XML file...
    I solved, how to read XML file
    But I don't know how to Write nodes into another XML.
    Can anyone help in this???
    Thanks in advance..

    This was answered a bit ago. There was a thread called "XML Mergine" that started on Sept 14th. It has a lot of information about what it takes to copy nodes from one XML Document object into another.
    Dave Patterson

  • How to read XML file and update the data in MS CRM 2011?

    Hi Folks,
    Can anyone please help me finding some references to read XML files and push the data to MS CRM 2011 preferably by using a console application.
    Please let me know if any ways of handling it in simple ways.
    Thanks,
    Sri

    HI,
    How to read XML file:
    https://social.msdn.microsoft.com/Forums/en-US/5dd7261b-86c4-4ca8-ba87-95196ef3ba50/need-to-display-xml-file-in-textboxes-edit-the-data-and-save-the-new-xml-file?forum=csharpgeneral
    How to work with CRM:
    ClientCredentials credentials = new ClientCredentials();
    credentials.Windows.ClientCredential = new System.Net.NetworkCredential("USER", "Password", "Domain");
    Uri uri = new Uri("http://server/Organization/XRMServices/2011/Organization.svc");
    OrganizationServiceProxy proxy = new OrganizationServiceProxy(uri, null, credentials, null);
    proxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
    IOrganizationService service = (IOrganizationService)proxy;
    //using "service" you can create, update and retrieve entities.
    More information here about service functions:
    https://msdn.microsoft.com/en-us/library/gg328198.aspx

  • How to read XML file kept on NON-SAP server using the Http URL ?

    Dear Experts,
    I am working on CRM2007 web UI. I need to read a XML file placed on a shared server location by a third party program. Then process that XML file into CRM and create a quotation using the data extracted from the file.
    All i have with me is the http URL that points to the location of the file.
    I am supposed to read the file , create quotation and at later point of time i would be asked to update the quotation and then generated new XML representing updated quotation and replace the XML file on shared server location with this new updated XML file.
    I know how to extract data from XML file into ABAP but i have no clue as to how to access the file on some other server using the http url i have and how to read it ?
    I searched on the forum and i found the codes for reading XML file that is located either on client machine OR on the Application server wheareas my file is on some other than sap application server.
    Please help me as its an urgent issue .
    Points will be rewarded for sure.
    Please help.
    Thanks in advance,
    Suchita.
    p.s. : the http url to the file location is like -->
    http://SomeServerDomain/SomeDirectory/file.xml

    hi,
    interesting task.
    to request the file by a http call you need to create an if_http_client object.
    More info is [here|http://help.sap.com/saphelp_nwmobile71/helpdata/en/e5/4d350bc11411d4ad310000e83539c3/frameset.htm]
    to parse the file you either have to work with the ixml packages ([info|http://help.sap.com/saphelp_nwmobile71/helpdata/en/47/b5413acdb62f70e10000000a114084/content.htm]) or you use an XSLT transformation ([info|http://help.sap.com/saphelp_nwmobile71/helpdata/en/a8/824c3c66177414e10000000a114084/content.htm]).
    uploading the final file isn't so easy. if you only have http, you should write a server script to allow uploading of the new file and copying it into the place of the old file. but you definitely need the script.
    now it's your take. depending on how experienced you are in ABAP and networking this might turn out to be easy or pretty complicated.
    have fun,
    anton

  • Read XML File on Unix from PL SQL

    Hi,
    How to read XML file placed on Unix Dir .
    If file name is yx.xml and file contain below data. Please let me know how to read
    column values such as AutomatedTransferOrders uniqueId="11761:234570"
    2)Cto Type = CTO
    3)Description = Test PIP
    <AgileData xsi:schemaLocation="http://www.oracle.com/ http://www.oracle.com/technology/products/applications/xml/aXML.xsd">
    <AutomatedTransferOrders uniqueId="11761:234570">
    <CoverPage>
    <CtoType>CTO</CtoType>
    <CtoNumber>CTO00069</CtoNumber>
    <Description>Created by subscriber DBA Program Prototype Change Subscriber.</Description>
    <Status>Released</Status>
    <Workflow>Default CTOs</Workflow>
    <Subscriber>DBA Program Prototype Change Subscriber</Subscriber>
    <DateOriginated>2012-03-15T00:29:10Z</DateOriginated>
    <DateReleased>2012-03-15T00:29:11Z</DateReleased>
    </CoverPage>
    <SelectedObjects referentId="6000:6243458">
    <Type>Program Change Order</Type>
    <NameNumber>PG0000038</NameNumber>
    <Description>Test PIP</Description>
    <LifecycleStatus>Released</LifecycleStatus>
    </SelectedObjects>
    </AutomatedTransferOrders>
    </AgileData>
    Appreciate your help.
    Thanks and Regards,
    Abhi

    sample
    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Connected as apps
    SQL>
    SQL> with t as
      2   (select xmltype('<AgileData>
      3    <AutomatedTransferOrders uniqueId="11761:6243470">
      4      <CoverPage>
      5        <AtoType>ATO</AtoType>
      6        <AtoNumber>ATO00069</AtoNumber>
      7        <Description>Created by subscriber BDA Program Prototype Change Subscriber.</Description>
      8        <Status>Released</Status>
      9        <Workflow>Default ATOs</Workflow>
    10        <Subscriber>BDA Program Prototype Change Subscriber</Subscriber>
    11        <DateOriginated>2012-03-15T00:29:10Z</DateOriginated>
    12        <DateReleased>2012-03-15T00:29:11Z</DateReleased>
    13      </CoverPage>
    14      <SelectedObjects referentId="6000:6243458">
    15        <Type>Program Change Order</Type>
    16        <NameNumber>PG0000038</NameNumber>
    17        <Description>Test PIP</Description>
    18        <LifecycleStatus>Released</LifecycleStatus>
    19      </SelectedObjects>
    20    </AutomatedTransferOrders>
    21    <ChangeOrders uniqueId="6000:6243458">
    22      <Workflow>
    23        <StatusCode>Process is moved forward</StatusCode>
    24        <WorkflowStatus>Pending</WorkflowStatus>
    25        <Workflow>BDA Program Prototype Workflow</Workflow>
    26        <StatusChangedBy>Gay Groce (ggroce)</StatusChangedBy>
    27        <LocalClientTime>2012-03-15T00:29:11Z</LocalClientTime>
    28      </Workflow>
    29      <Workflow>
    30        <StatusCode>Process is skipped</StatusCode>
    31        <WorkflowStatus>PD Approval</WorkflowStatus>
    32        <Workflow>BDA Program Prototype Workflow</Workflow>
    33        <StatusChangedBy>Gay Groce (ggroce)</StatusChangedBy>
    34        <LocalClientTime>2012-03-15T00:29:11Z</LocalClientTime>
    35      </Workflow>
    36      <Workflow>
    37        <StatusCode>Current Process</StatusCode>
    38        <WorkflowStatus>Released</WorkflowStatus>
    39        <Workflow>BDA Program Prototype Workflow</Workflow>
    40      </Workflow>
    41      <Workflow>
    42      <StatusCode>Future Process</StatusCode>
    43        <WorkflowStatus>Implemented</WorkflowStatus>
    44        <Workflow>BDA Program Prototype Workflow</Workflow>
    45      </Workflow>
    46    </ChangeOrders>
    47  </AgileData>') col
    48      from dual)
    49  --
    50  select x.*
    51    from t,
    52         xmltable('AgileData/ChangeOrders/Workflow'
    53                  passing t.col
    54                  columns StatusCode varchar2(100) path 'StatusCode',
    55                          WorkflowStatus varchar2(100) path 'WorkflowStatus',
    56                          Workflow varchar2(100) path 'Workflow',
    57                          StatusChangedBy varchar2(100) path 'StatusChangedBy',
    58                          LocalClientTime varchar2(100) path 'LocalClientTime') x
    59  /
    STATUSCODE                                                                       WORKFLOWSTATUS                                                                   WORKFLOW                                                                         STATUSCHANGEDBY                                                                  LOCALCLIENTTIME
    Process is moved forward                                                         Pending                                                                          BDA Program Prototype Workflow                                                   Gay Groce (ggroce)                                                               2012-03-15T00:29:11Z
    Process is skipped                                                               PD Approval                                                                      BDA Program Prototype Workflow                                                   Gay Groce (ggroce)                                                               2012-03-15T00:29:11Z
    Current Process                                                                  Released                                                                         BDA Program Prototype Workflow                                                                                                                                   
    Future Process                                                                   Implemented                                                                      BDA Program Prototype Workflow                                                                                                                                   
    SQL>

  • Read XML file into stored procedure

    hi to all, i have this stored procedure :
    create or replace
    PROCEDURE INSERTXML(
                                          p_xml_in CLOB,
                                          p_table IN VARCHAR2 ) AS                                     
      insCtx DBMS_XMLStore.ctxType;
      v_rows NUMBER;
    BEGIN
      insCtx := DBMS_XMLStore.newContext(p_table); -- get saved context
      dbms_xmlstore.setRowTag(insCtx,'Row');
      DBMS_XMLStore.clearUpdateColumnList(insCtx); -- clear the update settings
      -- set the columns to be updated as a list of values
      DBMS_XMLStore.setUpdateColumn(insCtx,'ORDERNUMBER');
      DBMS_XMLStore.setUpdateColumn(insCtx,'PLANT');
      DBMS_XMLStore.setUpdateColumn(insCtx,'MATERIAL');
      DBMS_XMLStore.setUpdateColumn(insCtx,'LINENUMBER');
      DBMS_XMLStore.setUpdatecolumn(insCtx,'NOMSPEED');
      DBMS_XMLStore.setUpdatecolumn(insCtx,'STARTDATE');
      DBMS_XMLStore.setUpdatecolumn(insCtx,'FINISHDATE');
      DBMS_XMLStore.setUpdatecolumn(insCtx,'TARGETQTY');
      DBMS_XMLStore.setUpdatecolumn(insCtx,'UNIT');
      DBMS_XMLStore.setUpdatecolumn(insCtx,'SYSTEMSTATUS');
      v_rows := DBMS_XMLStore.insertXML(insCtx, p_xml_in);
      -- Close the context
      DBMS_XMLStore.closeContext(insCtx);
    END;
    that passes xml file and puts in table but SAP Mii have the limitation that the maximun value of strings is 4000..how can i pass this limitation?!?! someone have some ideia?!?!...i have now to read XML file to stored procedure...could someone help me??
    regards and thanks in advance

    hello Michael thanks for your help but appear to me some strange errors, i created this package in Oracle SQL Developer...
    create or replace PACKAGE PACKAGE_XML AS
      type return_cur IS ref CURSOR;
      procedure INSERTXML4(
        xmlDoc IN CLOB,
        tableName IN VARCHAR2,
        myRC IN OUT return_cur
    END PACKAGE_XML;
    and compile and everthing is ok, then i changed my SP and it looks like this:
    create or replace PROCEDURE INSERTXML4
      (xmlDoc in CLOB, tableName in VARCHAR2, refcur in out package_xml.return_cur)
    AS
      insCtx dbms_xmlsave.ctxType;
      rowcnt number;
    BEGIN
      insCtx := dbms_xmlsave.newContext(tableName);
      dbms_xmlsave.setignorecase(insCtx,1);
      rowcnt := dbms_xmlsave.insertxml(insCtx, xmlDoc);
      dbms_xmlsave.closecontext(insCtx);
      OPEN refcur FOR SELECT rowcnt AS cnt FROM dual;
    END INSERTXML4;
    but i cant compile...it throws this errors:
    Error(5,10): PLS-00201: identifier 'DBMS_XMLSAVE.CTXTYPE' must be declared
            Error(5,10): PL/SQL: Item ignored
            Error(8,3): PLS-00320: the declaration of the type of this expression is incomplete or malformed
            Error(8,3): PL/SQL: Statement ignored
            Error(9,3): PL/SQL: Statement ignored
            Error(9,30): PLS-00320: the declaration of the type of this expression is incomplete or malformed
            Error(10,3): PL/SQL: Statement ignored
            Error(10,13): PLS-00201: identifier 'DBMS_XMLSAVE.INSERTXML' must be declared
            Error(11,3): PL/SQL: Statement ignored
            Error(11,29): PLS-00320: the declaration of the type of this expression is incomplete or malformed
    do you could help..
    regards
    Mário

  • Write Read XML Files not made in LabVIEW

    I have an application that needs to be able to write and read xml files.  My application needs to be able to save the files in such a format that an outside program can use the values saved in the xml file.  On a system restart I need to be able to read in the values that were saved back into the program and populate the multicolumn list box it came from.  My issue really is just reading it back in from the file. 
    I could create a way of writing the xml file with the information in the format needed for the other program.  The problem really is, how do I handle reading in, and then populating controls with the information provided in the xml file with the xml file not in the LabView format. 
    The xml controls that have been provided by NI are not usable in this case. 
    Any suggestions or possible solutions would be greatly appreciated.  Thank you for all of the help ahead of time.

    Try LabXML.

  • Reading XML file from application server and  put into internal table-4.6C

    Dear All,
    Is there any way of reading XML file from application server to SAP? I am using 4.6C. Function module SCMS_STRING_TO_XSTRING function module is not available. Please suggest.
    Thanks and regards,
    Atanu

    Hi Atanu!
    Simply use the XSLT transformation 'ID'.
    FIELD-SYMBOLS <ls_result> TYPE ANY.
    CREATE DATA lref_data TYPE (your_structure).
    ASSIGN lref_data->* TO <ls_result>.
    CALL TRANSFORMATION id
                        SOURCE XML xmlstr
                        RESULT result = <ls_result>.
    "xmlstr" contains your XML file. Just read it into it via standard I/O operations. "<ls_result>" will contain your DDIC formatted content.
    Best regards
    Torsten

Maybe you are looking for

  • Firm Zone and Trade off Zone in Scheduling Agreement

    Dear All Please explain in detailed the concept of Firm Zone and Trade off Zone in Scheduling Agreement, and it's effects in MRP run, i.e. If i take a MRP run for a material whci is having firm zone as 30 days and trade off zone as 60 days then what

  • How can I fix my apps so it wont be forced to close

    Its an Ipod touch 2nd generation and I cant even download a app without all of my apps closing on me.......please help

  • How to connect to a Monitor?

    Hello all! I have a Macbook and I want to connect it to a Monitor so that I can work on a big screen for some of works. Is it possible to do so? Are there any cables or adapters which can be used to connect the Macbook to the monitor? Thanks for your

  • MSVCR80.DLL Error

    Before you all jump up and flame about not being able to use the search function believe me I have. I've read it all. Bewildered comments, useless registry cleaners (read: regcure solves nothing), if I see another post about IntelliPoint I'll scream

  • ITunes will not start (how to fix)

    After buying my new iPod, I realized that iTunes was necessary for the transfer of music and pictures to it. My iTunes was not working. I was going to throw my laptop out the window!! It only worked after I installed it, but when I restart my pc, it