Dashes in xml node names

I need to parse an xml document returned by a web-service. It does not, nor do we want it to, follow any SOAP or wdsl standard.. However I still need to parse it (hence the flex becomes unflexible).
Some of the nodes names in the xml document have dashes it is.. (ex. <node-name></node-name>) However flex does not let me access these nodes..
If I try and parse a mx.rpc.events.ResultEvent thus :
someObject = event.result.root.node-name as someObjectType;
I get an error: 1120: Access of undefined property structure.  ...  line 16    1253139374175    81
However when I traverse the event object in the debugger.. the result.root.node-name object is in debugger as an ObjectProxy.. so what gives? I have to use boring one word node names? Is Flex so inFlexible?

Hey! thanks for the advice! I did try this, but I don't think I was using the object correctly. I wast to try and bind the text value of an xml node to a control Object..
Back to the books, then
Thanks again,

Similar Messages

  • GET XML NODE NAME FOR LOOPING

    Hi,
    i hv a procedure to get the xml data's(values of the xml) from a clob. in a table.it works fine the parent tags but if the same tag is there for two times then i am not able to loop it because i dont know the tag name for which the loop should be run.
    to be clear.
    <root>
    <tag1>value1
    </tag1>
    <tag1>value2
    </tag1>
    </root>
    i need to run some fns for each node value so i need to loop for each node having same value pls help me to get the node name.

    You can simply alter get xml node name in loop to return a count on just the node you are looking for. Not sure why you need to know the count when you can have the logic iterate through the nodes for you, either as an XMLType or a DOMDocument (see nodelist).

  • Get xml node name from clob in loop

    Hi,
    i hv a procedure to get the xml data's(values of the xml) from a clob. in a table.it works fine the parent tags but if the same tag is there for two times then i am not able to loop it because i dont know the tag name for which the loop should be run.
    to be clear.
    <root>
    <tag1>value1
    </tag1>
    <tag1>value2
    </tag1>
    </root>
    i need to run some fns for each node value so i need to loop for each node having same value pls help me to get the node name.

    You can simply alter get xml node name in loop to return a count on just the node you are looking for. Not sure why you need to know the count when you can have the logic iterate through the nodes for you, either as an XMLType or a DOMDocument (see nodelist).

  • HELP NEEDED!!!displaying xml node name in an input text box

    Hello everybody
    Have a simple proble. I have imported an XML file into flash
    using the Tree component and the XML_conn component. So i have the
    xml tree displying in flash when i have run it.
    I have created an input text box called 'subject'
    All i really need is when a user clicks on any node for that
    node name to be displayed in a the input text box. thats it. ITS
    DRIVING ME CRAZY

    Try something like this. (if your Tree is called myTree)
    var myTreeListener = {}
    myTreeListener.change = function(evtObj) {
    subject.text = evtObj.target.selectedNode.nodeName;
    myTree.addEventListener("change",myTreeListener)

  • How to read a xml node name in xsl? Urgent!

    Hi,
    I've a dynamic xml which gets generated at runtime. The basic nodes remain same but the content and nodes vary.
    - <root>
    - <list>
    - <row>
    <courseStartDate></courseStartDate>
    <courseEndDate></courseEndDate>
    <courseName>ORACLE</courseName>
    </row>
    - </list>
    </root>
    I have an xsl which would read the values
    as :
    <xsl:value-of select="courseStartDate"/>
    I would like to know if its possible to read the node name "courseStartDate" through xsl, which could be stored in a variable and then the corresponding value could be retrieved??
    Thanks

    If u want to display the name : value then u can do like this
    <xsl:eval>this.selectSingleNode("name").nodeName</xsl:eval> : <xsl:value-of select="name" />

  • Get xml node name in loop

    Hi,
    i hv a procedure to get the xml data's(values of the xml) from a clob. in a table.it works fine the parent tags but if the same tag is there for two times then i am not able to loop it because i dont know the tag name for which the loop should be run.
    to be clear.
    <root>
    <tag1>value1
    </tag1>
    <tag1>value2
    </tag1>
    </root>
    i need to run some fns for each node value so i need to loop for each node having same value pls help me to get the node name.

    pls help me to get the node name.Still not sure what you are actually trying to accomplish, but maybe this helps:
    SQL> set echo on
    SQL> col node form a30
    SQL> with xml as (
    select xmltype('<root>
    <tag1>value1
    </tag1>
    <tag1>value2
    </tag1>
    </root>') xml from dual)
    select t.column_value.getrootelement() node
      from xml xml,
    table (xmlsequence(xml.xml.extract('//*'))) t
    NODE                         
    root                         
    tag1                         
    tag1                         
    3 rows selected.

  • XML node name matching with regular expressions

    Hello,
    If i have an xml file that has the following:
         <parameter>
              <name>M2-WIDTH</name>
              <value column="09" date="2004-10-31T19:56:30" row="03" waferID="PUK444150-20">10.4518</value>
         </parameter>
         <parameter>
              <name>M2-GAP</name>
              <value column="29" date="2004-10-31T19:56:30" row="06" waferID="PUK444150-03">2.864</value>
         </parameter>
         <parameter>
              <name>RES-LENGTH</name>
              <value column="29" date="2004-10-31T19:56:30" row="06" waferID="PUK444150-03">2.864</value>
         </parameter>
    Is there anyway i can get a list of nodes that match a certain pattern say where name=M2* ?
    I cant seem to find any information where i can match a regular expression. I see how you can do:
    String expression=/parameter[@name='M2-LENG']/value/text()";
    NodeList nodes = (NodeList) xPath.evaluate(expression, inputSource, XPathConstants.NODESET);
    But i want to be able to say:
    String expression=/parameter[@name='M2-*']/value/text()";
    Is this possible? if so how can i do this?
    Thanks!

    As implemented in Java, XPath does not support regular expressions, but in most cases there are workarounds thanks to XPath functions. Correct me if I'm wrong, but setting your expression against the XML document (i.e. because there are no "name" attributes in the whole document) I think you mean to get the value of the <value> elements that have a <parameter> parent element and a <name> sibling element whose value starts with "M2-". If that is the case, you can use the following query expression:String expression = "//parameter/value[substring(../name,1,3)='M2-']";Sorry if I misunderstood the meaning of your expression, but I hope this will help you get the hang of using XPath functions as a substitute for regular expressions.

  • ColdFusion doesnt like a Dash in XML Nodes?

    One of the SOAP requests I do gives back:
    nodes like this:
    <weather-conditions weather-summary="Chance Rain
    Showers">
    But if I try to reference them in CF like such:
    writeoutput('#XMLContent.dwml.data.parameters.weather.weather-conditions.XmlAttributes["we ather-summary"]#');
    It doenst like it. I'd rather not use XMLChildren to get
    around this as its usually messy.

    Here, associative-array notation is better than dotted
    notation. Use
    XMLContent["dwml"]["data"]["parameters"]["weather"]["weather-conditions"].XmlAttributes["w eather-summary"]

  • Xml: how to get node value when pasing node name as a parameter

    Hi,
    I've got some xml:
    var xmlData:XML =
    <1stNode>
        <buttonID>first child node value</buttonID>
        <imageID>second child node value</imageID>
        <labelID>third child node value</labelID>
    </1stNode>
    Then I want to read specific node value based on a value passed to a function. .
    var buttonID = new Button;
    var imageID = new Image;
    var labelID = new Label;
    getNodeValue(buttonID); //the value here is set dynamically
    private function getNodeValue (nodeName:String):void {
    trace (xmlData.nodeName)                      //doesn't work
    var str:String = "xmlData." + nodeName;
    var xml:XMLList = str as XMLList             //doesn't work
    I'm don't know how to get the value when node name is dynamically changed.

    use:
    getNodeValue(buttonID); //the value here is set dynamically
    private function getNodeValue (nodeName:String):void {
    trace (xmlData[nodeName])                    

  • Store XML node value into an array with node element name

    Hi,
    I have the following code that displays the node element with the
    corresponding node value. I want to store the values in an array in
    reference to the node name.
    i.e.
    XML (my xml is much bigger than this, 300 elements):
    <stock>
    <symbol>SUNW</symbol>
    <price>17.1</price>
    </stock>-----
    would store the following:
    *data[symbol] = SUNW;*
    *data[price] = 17.1;*
    Thanks in advance,
    Tony
    test.jsp
    Here's my source code:
    <html>
    <head>
    <title>dom parser</title>
    <%@ page import="javax.xml.parsers.*" %>
    <%@ page import="org.w3c.dom.*" %>
    <%@ page import="dombean.*" %>
    </head>
    <body bgcolor="#ffffcc">
    <center>
    <h3>Pathways Info</h3>
    <table border="2" width="50%">
    <jsp:useBean id="domparser" class="dombean.MyDomParserBean" />
    <%
    Document doc = domparser.getDocument("c:/stocks/stocks.xml");
    traverseTree(doc, out);
    %>
    <%! private void traverseTree(Node node,JspWriter out) throws Exception {
    if(node == null) {
    return;
    int type = node.getNodeType();
    switch (type) {
    // handle document nodes
    case Node.DOCUMENT_NODE: {
    out.println("<tr>");
    traverseTree
    (((Document)node).getDocumentElement(),
    out);
    break;
    // handle element nodes
    case Node.ELEMENT_NODE: {
    String elementName = node.getNodeName();
    //if(elementName.equals("MOTHER-OCC-YRS-PREVIOUS")) {
    //out.println("</tr>");
    out.println("<tr><td>"+elementName+"</td>");
    NodeList childNodes =
    node.getChildNodes();     
    if(childNodes != null) {
    int length = childNodes.getLength();
    for (int loopIndex = 0; loopIndex <
    length ; loopIndex++)
    traverseTree
    (childNodes.item(loopIndex),out);
    break;
    // handle text nodes
    case Node.TEXT_NODE: {
    String data = node.getNodeValue().trim();
    //if((data.indexOf("\n")  <0) &#38;&#38; (data.length() > 0)) {
    out.println("<td>"+data+"</td></tr>");
    %>
    </table>
    </body>
    </html>
    {code}
    *MyDomParserBean.java*
    Code: package dombean;
    {code:java}
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import java.io.*;
    public class MyDomParserBean
    implements java.io.Serializable {
    public MyDomParserBean() {
    public static Document
    getDocument(String file) throws Exception {
    // Step 1: create a DocumentBuilderFactory
    DocumentBuilderFactory dbf =
    DocumentBuilderFactory.newInstance();
    // Step 2: create a DocumentBuilder
    DocumentBuilder db = dbf.newDocumentBuilder();
    // Step 3: parse the input file to get a Document object
    Document doc = db.parse(new File(file));
    return doc;
    {code}
    Edited by: ynotlim333 on Sep 24, 2007 8:41 PM
    Edited by: ynotlim333 on Sep 24, 2007 8:44 PM
    Edited by: ynotlim333 on Sep 24, 2007 8:45 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I still need to store it in an array because its 300 elements in the XML stocks.
    I've done the following but its not working, i'm getting error codes. I think its an easy fix. I'd also like to pass a String instead of a .xml document b/c my xml is stored inside a DB. Any suggestions on that?
    <html>
    <head>
    <title>dom parser</title>
    <%@ page import="javax.xml.parsers.*" %>
    <%@ page import="org.w3c.dom.*" %>
    <%@ page import="org.*" %>
    </head>
    <body bgcolor="#ffffcc">
    <center>
    <h3>Pathways Info</h3>
    <table border="2" width="50%">
    <jsp:useBean id="domparser" class="org.MyDomParserBean" />
    <%
    Document doc = domparser.getDocument("c:/stocks/stocks.xml");
    traverseTree(doc, out);
    %>
    <%!
            public String element_store = null;
            public String[] stock_data = new String[400];
            private void traverseTree(Node node,JspWriter out) throws Exception {
            if(node == null) {
               return;
            int type = node.getNodeType();
            switch (type) {
               // handle document nodes
               case Node.DOCUMENT_NODE: {
                 out.println("<tr>");
                 traverseTree
                 (((Document)node).getDocumentElement(),
                 out);
                 break;
              // handle element nodes
              case Node.ELEMENT_NODE: {
                String elementName = node.getNodeName();
                element_store = elementName;
                 //if(elementName.equals("MOTHER-OCC-YRS-PREVIOUS")) {
                   //out.println("</tr>");
                 NodeList childNodes =
                 node.getChildNodes();     
                 if(childNodes != null) {
                    int length = childNodes.getLength();
                    for (int loopIndex = 0; loopIndex <
                    length ; loopIndex++)
                       traverseTree
                       (childNodes.item(loopIndex),out);
                  break;
               // handle text nodes
               case Node.TEXT_NODE: {
                  String data = node.getNodeValue().trim();
                  if((data.indexOf("\n")  <0) && (data.length() > 0)) {
                  out.println("<tr><td>"+element_store+"</td>");
                  out.println("<td>"+data+"</td></tr>");
                  stock_data[element_store]=data;
    %>
    </table>
    </body>
    </html>

  • How do I pull XML data by a node name?

    I am new to Flash and XML so I hope I am not asking a
    completely dumb question. I have figured out how to retrieve data
    from and XML file by the node possition but now I would like to
    know how to pull it by a specific node name. Here is what I
    currently have:
    on (rollOver)
    myLot = 1;
    _root.myInfo =
    _root.myXML.childNodes[0].childNodes[this.myLot].childNodes[0].childNodes[0].nodeValue;
    With XML file like this:
    <SectionOne>
    <Lot1>
    <Lot>1</Lot>
    <Price>$450,000</Price>
    <Status>Active</Status>
    </Lot1>
    <Lot4>
    <Lot>4</Lot>
    <Price>$389,000</Price>
    <Status>Sold</Status>
    </Lot2>
    </SectionOne>
    What I would like is to pull instead of
    childNodes[this.myLot] to pull the node named Lot1. The problem I
    have is I don't always have consecutive lot numbers and I don't
    want to have to build in blank xml lines for a placeholder. I hope
    that makes sense.

    Sorry for the delay. I originally posted this on the
    newsgroup, but I suppose it did not propagate to here.
    What you would do is use a loop statement and compare the
    nodeNames.
    To see a nodes name such as Lot1 you use:
    childNodes[x].nodeName
    // Load up the lotNodes object
    lotNodes = _root.myXML.childNodes[0];
    // Now lotNodes contains all the nodes Lot0, Lot1, Lot2.....
    // Iterate through all of lotNodes childNodes and compare the
    // nodeName until you find the one you want then drill down
    // it to get the info you want.
    for( var counter01 = 0;counter01 <
    lotNodes.childNodes.length;counter01++){
    if(lotNodes.childNodes[counter01].nodeName == "Lot1"){
    myInfo =
    lotNodes.childNodes[counter01].childNodes[0].childNodes[0].nodeValue;
    I have not had time to test this but it should work, I'll
    double check it after work.
    I hope this helps get you moving forward.
    If you have any other problems or can't get it to work, let
    me know here or email me. Preferably here, so others can learn and
    help.
    Scotty
    [email protected]

  • Unknown tag name: [session] in XML node: [toplink-configuration].

    I get this exception at runtime, running TOPLink as persistence manager for my BMP WL7 beans. My sessions.xml validates according to the sessions_4_5.dtd file supplied with TOPLink, but yet I get this excpetion. Below is my complete sessions.xml, as well as teh header of the exception stack
    Sessions.xml
    <?xml version="1.0" encoding="US-ASCII"?>
    <!DOCTYPE toplink-configuration PUBLIC "-//Oracle Corp.//DTD TopLink for JAVA 4.5//EN" "sessions_4_5.dtd">
    <toplink-configuration>
         <session>
              <name>entitySession</name>
              <project-class>za.co.discovery.legalentity.persistence.TOPLinkProject</project-class>
              <session-type>
                   <server-session/>
              </session-type>
              <login>
                   <uses-external-connection-pool>true</uses-external-connection-pool>
                   <uses-external-transaction-controller>true</uses-external-transaction-controller>
              </login>
              <external-transaction-controller-class>oracle.toplink.jts.wls.WebLogicJTSExternalTransactionController</external-transaction-controller-class>
              <enable-logging>true</enable-logging>
              <logging-options>
                   <log-debug>false</log-debug>
                   <log-exceptions>true</log-exceptions>
                   <log-exception-stacktrace>true</log-exception-stacktrace>
                   <print-thread>false</print-thread>
                   <print-session>true</print-session>
                   <print-connection>true</print-connection>
                   <print-date>false</print-date>
              </logging-options>
         </session>
    </toplink-configuration>
    and the stack trace:
    1) testAll(za.co.discovery.legalentity.ejb.test.ClassVersionTest)java.rmi.RemoteException: Exception in ejbFindByPrimaryKey; nested exception is:
         EXCEPTION [TOPLINK-7094] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.ValidationException
    EXCEPTION DESCRIPTION: LOCAL EXCEPTION STACK:
    EXCEPTION DESCRIPTION: Several [2] SessionLoaderExceptions were thrown:
    EXCEPTION [TOPLINK-9002] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.SessionLoaderException
    EXCEPTION DESCRIPTION: Unable to load Project class [za.co.discovery.legalentity.persistence.TOPLinkProject].
    INTERNAL EXCEPTION: java.lang.ExceptionInInitializerError
    EXCEPTION [TOPLINK-9001] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.SessionLoaderException
    EXCEPTION DESCRIPTION: Unknown tag name: [session] in XML node: [toplink-configuration].
    INTERNAL EXCEPTION: java.lang.reflect.InvocationTargetException
    TARGET INVOCATION EXCEPTION: java.lang.NullPointerException
         at oracle.toplink.exceptions.SessionLoaderException.finalException(Unknown Source)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at oracle.toplink.ejb.EJBDataStore.getSession(Unknown Source)
         at oracle.toplink.ejb.EJBDataStore.getDescriptor(Unknown Source)
         at oracle.toplink.ejb.EJBDataStore.getWrapperPolicy(Unknown Source)
         at oracle.toplink.ejb.EJBDataStore.findByPrimaryKey(Unknown Source)
         at oracle.toplink.ejb.bmp.BMPEntityBase.findByPrimaryKey(Unknown Source)
         at za.co.discovery.legalentity.ejb.LegalEntityEJB.ejbFindByPrimaryKey(LegalEntityEJB.java:67)
    all help appreciated!
    thanks
    Alwyn ([email protected])

    Hi Alwyn
    I've seen this exact problem before when the sessions.xml file has been parsed by a different version of xerces from the one provided in TopLink. Is this a possibility?
    JIM

  • How to transform node name in XML data source for SSIS

    I have the following xml file; I want to change the node name of Emp.location to Emp_location, Edu.location to Edu_location, Addr.location to Addr_location as it was not supported by SSIS. I have multiple files like that. I  am thinking to use SSIS XML
    task with  XLST file to transform it. Can anybody help it?
    Thank you
    <?xml version="1.0" encoding="utf-8"?>
    <Resumes>
    <Resume>
      <Name>
        <Name.Prefix />
        <Name.First>Shai</Name.First>
        <Name.Middle />
        <Name.Last>Bassli</Name.Last>
        <Name.Suffix />
      </Name>
      <Skills>
        I am an experienced and versatile machinist who can operate a range of machinery personally
    as well as supervise the work of other machinists. I specialize in diagnostics and precision inspection, have expertise in reading blueprints, and am able to call on strong interpersonal and communication skills to guide the work of other production machinists
    whose work I am called upon to inspect.
        My degree in mechanical engineering affords me a better theoretical understanding and mathematical
    background than many other candidates in the machinist trade.
      </Skills>
      <Employment>
        <Emp.StartDate>2000-06-01Z</Emp.StartDate>
        <Emp.EndDate>2002-09-30Z</Emp.EndDate>
        <Emp.OrgName>Wingtip Toys</Emp.OrgName>
        <Emp.JobTitle>Lead Machinist</Emp.JobTitle>
        <Emp.Responsibility>
          Supervised work of staff of four machinists. Coordinated all complex assembly and tooling
    activities, including production of tricycles and wagons.
          Developed parts fabrication from sample parts, drawings and verbal orders.Worked with
    ISO9000 implementation.
        </Emp.Responsibility>
        <Emp.FunctionCategory>Production</Emp.FunctionCategory>
        <Emp.IndustryCategory>Manufacturing</Emp.IndustryCategory>
        <Emp.Location>
          <Location>
            <Loc.CountryRegion>US </Loc.CountryRegion>
            <Loc.State>MI </Loc.State>
            <Loc.City>Saginaw</Loc.City>
          </Location>
        </Emp.Location>
      </Employment>
      <Employment>
        <Emp.StartDate>1996-11-15Z</Emp.StartDate>
        <Emp.EndDate>2000-05-01Z</Emp.EndDate>
        <Emp.OrgName>Blue Yonder Airlines</Emp.OrgName>
        <Emp.JobTitle>Machinist</Emp.JobTitle>
        <Emp.Responsibility>
          Repaired and maintained a variety of production and fabrication machine tools.
          Set up and operated machines to close tolerances. Used and wrote CNC machine programs.
    Trained extensively in computer-aided manufacturing.
        </Emp.Responsibility>
        <Emp.FunctionCategory>Production</Emp.FunctionCategory>
        <Emp.IndustryCategory>Manufacturing</Emp.IndustryCategory>
        <Emp.Location>
          <Location>
            <Loc.CountryRegion>US </Loc.CountryRegion>
            <Loc.State>IL </Loc.State>
            <Loc.City>Chicago</Loc.City>
          </Location>
        </Emp.Location>
      </Employment>
      <Employment>
        <Emp.StartDate>1994-06-10Z</Emp.StartDate>
        <Emp.EndDate>1996-07-22Z</Emp.EndDate>
        <Emp.OrgName>City Power and Light</Emp.OrgName>
        <Emp.JobTitle>Assistant Machinist</Emp.JobTitle>
        <Emp.Responsibility>
          Performed centerless grinding. Received training in manual mill and lathe machines,
    as well as micrometers and calipers.
          Owned complete toolset.Worked extensive overtime on request.
        </Emp.Responsibility>
        <Emp.FunctionCategory>Production</Emp.FunctionCategory>
        <Emp.IndustryCategory>Manufacturing</Emp.IndustryCategory>
        <Emp.Location>
          <Location>
            <Loc.CountryRegion>US </Loc.CountryRegion>
            <Loc.State>IA </Loc.State>
            <Loc.City>Des Moines</Loc.City>
          </Location>
        </Emp.Location>
      </Employment>
      <Education>
        <Edu.Level>Bachelor</Edu.Level>
        <Edu.StartDate>1990-09-15Z</Edu.StartDate>
        <Edu.EndDate>1994-05-10Z</Edu.EndDate>
        <Edu.Degree>Bachelor of Science</Edu.Degree>
        <Edu.Major>Mechanical Engineering</Edu.Major>
        <Edu.Minor />
        <Edu.GPA>3.2</Edu.GPA>
        <Edu.GPAScale>4</Edu.GPAScale>
        <Edu.School>Midwest State University</Edu.School>
        <Edu.Location>
          <Location>
            <Loc.CountryRegion>US </Loc.CountryRegion>
            <Loc.State>IA </Loc.State>
            <Loc.City>Ames</Loc.City>
          </Location>
        </Edu.Location>
      </Education>
      <Address>
        <Addr.Type>Home</Addr.Type>
        <Addr.Street>567 3rd Ave</Addr.Street>
        <Addr.Location>
          <Location>
            <Loc.CountryRegion>US </Loc.CountryRegion>
            <Loc.State>MI </Loc.State>
            <Loc.City>Saginaw</Loc.City>
          </Location>
        </Addr.Location>
        <Addr.PostalCode>53900</Addr.PostalCode>
        <Addr.Telephone>
          <Telephone>
            <Tel.Type>Voice</Tel.Type>
            <Tel.IntlCode>1</Tel.IntlCode>
            <Tel.AreaCode>276</Tel.AreaCode>
            <Tel.Number>555-0114</Tel.Number>
          </Telephone>
          <Telephone>
            <Tel.Type>Fax</Tel.Type>
            <Tel.IntlCode>1</Tel.IntlCode>
            <Tel.AreaCode>276</Tel.AreaCode>
            <Tel.Number>555-0132</Tel.Number>
          </Telephone>
        </Addr.Telephone>
      </Address>
      <EMail>[email protected]</EMail>
      <WebSite />
    </Resume>
    </Resumes>

    See if these posts help: http://blogs.msdn.com/b/mattm/archive/2007/12/15/xml-source-making-things-easier-with-xslt.aspx
    http://simonlv.blogspot.ca/2012/08/ssis-step-by-step-6-use-xslt-to.html
    Arthur My Blog

  • Retrieve node name from XML

    Hi, I have an XML file that I loaded into Flex converting it
    into an arrayCollection.
    If I want to retrieve the node name rather then the node
    content, how do i do?
    For istance:
    <root>
    <node1>content1</node1>
    <node2>content2</content2>
    </root>
    What I would like to do is to assign the text "node1" or
    "node2" to a variable of my Flex project.
    Is this possible?
    Many thanks to who may help.

    I think easiest way is to use e4x. look here :
    http://livedocs.adobe.com/e4x

  • Poweshell script to parse a XML document to get all Leaf level nodes with Node names in CSV

    Hi Experts,
    I want to write a Powershell script to parse a XML document to get all Leaf level nodes with Node names in CSV
    <?xml version="1.0" encoding="UTF-8"?>
    <CATALOG>
       <CD>
          <TITLE>Empire Burlesque</TITLE>
          <ARTIST>Bob Dylan</ARTIST>
          <COUNTRY>USA</COUNTRY>
          <COMPANY>Columbia</COMPANY>
          <PRICE>10.90</PRICE>
          <YEAR>1985</YEAR>
       </CD>
    </CATALOG>
    Need to display this as
    CD_Tiltle, CD_ARTIST, CD_COUNTRY, CD_COMPANY, CD_PRICE, CD_YEAR
    Empire Burlesque, Bob Dylan,USA,Columbia,10.90,1985
    and so on..
    I do not want to hard code the tag names in the script.
    current example is 2 level hierarchy XML can be many level till 10 max I assume
    in that case the csv file field name will be like P1_P2_P3_NodeName as so on..
    Thanks in advance
    Prajesh

    Thankfully, I have writtenscript for ths same $node_name="";
    $node_value="";
    $reader = [system.Xml.XmlReader]::Create($xmlfile)
    while ($reader.Read())
    while ($reader.Read())
    if ($reader.IsStartElement())
    $node_name += "," + $reader.Name.ToString();
    if ($reader.Read())
    $node_value += "," + $reader.Value.Trim();
    Thanks and Regards, Prajesh Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

Maybe you are looking for

  • Again, how do I disable Ffirefox's intrusive asking me to store passwords?

    Again, how do I disable Ffirefox's intrusive asking me to store passwords? == This happened == Every time Firefox opened

  • After Mountain Lion installed, 27" late 2009 iMac won't sleep

    As the title says..... Worked fine since new, but with Mountain Lion, it won't auto sleep. I have a numbe of iProducts, but only this one isn't working. Energy saver settings are fine. Desired behavior is after a few minutes the screen goes dark, the

  • Have to keep resetting iphone to get coverage back? Help

    In the last week my phone coverage blanks out. It's all good if I reset the phone but only temporarily. Just recently (2 days ago) I installed the new firmware 2.2.1. plus the carrier settings update. Any ideas?

  • (EPMA)ODI -1241:-ODI TOOL EXECUTION FAILED

    Hi All, I'm trying to run a batch script using ODI OS Command.But i"m getting an error while running the command. Error:- ODI-1241: Oracle Data Integrator tool execution fails. Caused By: com.sunopsis.dwg.function.SnpsFunctionBaseException: ODI-30038

  • PM intergration with PP

    Hello every one, In my project i m working on PM but the problem which i am getting is that i am not able to stop PP order based on my planned order. I can run  the report cm21 for pp work center and can see whether any maintenance work is planned on