the xml parsing, whose siblings are same names

I need to parse xml looks like in below.

<? XML version = "1.0"? >
< ranks pos = totalRowCount "309" = "3101" >
< row id = "1" >
< col > 10 < / pass >
11:08:25.0 < col > 2010 - 06 - 06 < / pass >
< / row >
< row id = "2" >
< col > 2 < / pass >
11:08:25.0 < col > 2010 - 06 - 06 < / pass >
< / row >
< row id = "3" >
< col > 3 < / pass >
11:08:25.0 < col > 2010 - 06 - 06 < / pass >
< / row >
< row id = "4" >
< col > 4 < / pass >
11:08:25.0 < col > 2010 - 06 - 06 < / pass >
< / row >
< / rows >

in my datagrid

< mx:columns >
< mx:DataGridColumn headerText = "Column 1" dataField = "none [0]" / >
< mx:DataGridColumn headerText = "Column 2" dataField = "no [1]" / >
< / mx:columns >

How to bind xml elements (col) to the data area?

Hi Itambs,

Here is the code of your application with the same xml structure that you wanted...

MS in "Data.xml" file put the xml structure, you need...

If this post answers your question or assistance, please mark it as such.


http://www.Adobe.com/2006/mxml"creationComplete ="loadData (); "layout ="absolute">

  Import mx.collections.ArrayCollection;
Import mx.rpc.xml.SimpleXMLDecoder;
  
private var loader: URLLoader = new URLLoader();
[Bindable] public var dpac:ArrayCollection = new ArrayCollection();
  
private void loadData (): void
{
var request: URLRequest = new URLRequest();
Request.URL = "data.xml".
Loader.Load (request);
loader.addEventListener (Event.COMPLETE, dataLoadComp);
}
  
private void dataLoadComp(event:Event):void
{
var xml = new XML (loader.data);
var xmlDoc:XMLDocument = new XMLDocument (xml);
var decoder: SimpleXMLDecoder = new SimpleXMLDecoder (true);
var obj:Object = decoder.decodeXML (xmlDoc);
DPAC = obj.rows.row as ArrayCollection collection;
}
]]>


 
   
     
      
       
        
        Import mx.collections.ArrayCollection;
]]>
      

       

      

     

   

   
    
     
      
       
       Import mx.collections.ArrayCollection;
]]>
     

      

     

    

   

 


If this post answers your question or assistance, please mark it as such.

Thank you

Jean Claude Chari

Tags: Flex

Similar Questions

  • 5083: XEngine error - error in the XML parser.

    Hi gurus B2B.

    While I send 850 out the partner I get below error. Could U please help me how to rectify the situation

    Here are the logs...


    2009.09.09 to 10:39:39:109: B2BStarter wire: repository - (DEBUG) Bind Variable: index = value 2 = standby
    2009.09.09 to 10:40:03:268: Thread-16: B2B - (DEBUGGING) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:reset entry
    2009.09.09 to 10:40:03:269: Thread-16: B2B - oracle.tip.adapter.b2b.document.edi.ISelectorImpl:reset (DEBUG) leave
    2009.09.09 to 10:40:03:273: Thread-16: B2B - oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument (DEBUGGING) XML = 1
    2009.09.09 to 10:40:03:275: Thread-16: B2B - (DEBUGGING) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument no XDataToNative results
    2009.09.09 to 10:40:03:623: Thread-16: B2B - (DEBUGGING) iAudit report:

    Error in brief:
    5083: XEngine error - error in the XML parser.

    iAudit report:
    <? XML version = "1.0" encoding = "UTF-16"? > < AnalyzerResults Guid = "{3869810F-2D9D-DE11-8D9B-00144F86C7D4}" > < ExecutionDate > Wednesday, September 9, 2009 < / ExecutionDate > < ExecutionTime > 10:40:03 (GMT) < / ExecutionTime > < AnalyzerReturn > Failed < / AnalyzerReturn > < NumberOfErrors > 1 < / NumberOfErrors > < ErrorByCategory > < Category Name = "Reject" > < name of gravity = 'Normal' > 1 < / gravity > < / category > < / ErrorByCategory > < status > completed < / status > < DataFile > < FilePath / > < FileName / > < LastModified. > < file size / > < file:// DataURL > < / DataURL > < / DataFile > < AnalyzerErrors > < error ErrorCode = '{C0046014-9F8C-4C50-8AD0-22176044D2D6}' gravity 'Normal' category = index to 'Reject' = '1' ID = '50830000' > < ErrorBrief > 5083: XEngine error - XML parser error. < / ErrorBrief > < ErrorMsg > XML parser error. < / ErrorMsg > < ErrorObjectInfo > < = 'ErrorLevel' > 0 parameter name < / parameter > < name of the parameter 'Name' = > XData2Native < / parameter > < parameter name = "_ec_dn_guid_" > {08D8B221-2D9D-DE11-8D9B-00144F86C7D4} < / parameter > < parameter Name = "_ec_index" > 0 < / parameter > < parameter Name = "ec_error_scope" > Document < / parameter > < / ErrorObjectInfo > < ErrorDataInfo > < Part1 / > < ErrData / > < Part3 / > < DataXPointer > < StartPos > 0 < / StartPos > < size > 0 < / size > < / DataXPointer > < / ErrorDataInfo > < / error > < / AnalyzerErrors > < / AnalyzerResults >
    2009.09.09 to 10:40:03:637: Thread-16: B2B - (DEBUGGING) = {C0046014-9F8C-4C50-8AD0-22176044D2D6} oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sErrorGuid
    2009.09.09 to 10:40:03:639: Thread-16: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sDescription = XML parsing error.
    2009.09.09 to 10:40:03:644: Thread-16: B2B - sBrDescription oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument (DEBUG) = 5083: XEngine error - error in the XML parser.
    2009.09.09 to 10:40:03:648: Thread-16: B2B - (DEBUGGING) ErrorLevel = 0 sParameterValue = oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName
    2009.09.09 to 10:40:03:650: Thread-16: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = sParameterValue Name = XData2Native
    2009.09.09 to 10:40:03:654: Thread-16: B2B - sParameterName oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument (DEBUG) = ecdn_guid_ sParameterValue = {08D8B221-2D9D-DE11-8D9B-00144F86C7D4}
    2009.09.09 to 10:40:03:657: Thread-16: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = sParameterValue index ec= 0
    2009.09.09 to 10:40:03:660: Thread-16: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = ec_error_scope sParameterValue = Document
    2009.09.09 to 10:40:03:662: Thread-16: B2B - oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument (DEBUG) added pound key = {08D8B221-2D9D-DE11-8D9B-00144F86C7D4}
    2009.09.09 to 10:40:03:667: Thread-16: B2B - lot of oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument (DEBUG) Position = 0
    2009.09.09 to 10:40:03:672: Thread-16: B2B - Error (ERROR) -: AIP-51505: General Validation error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2298)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1618)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:976)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1167)
    at oracle.tip.adapter.b2b.transport.AppInterfaceListener.onMessage(AppInterfaceListener.java:141)
    at oracle.tip.transport.basic.FileSourceMonitor.processMessages(FileSourceMonitor.java:903)
    at oracle.tip.transport.basic.FileSourceMonitor.run(FileSourceMonitor.java:317)

    2009.09.09 to 10:40:03:677: Thread-16: B2B - Error (ERROR) -: AIP-51505: General Validation error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2298)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1618)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:976)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1167)
    at oracle.tip.adapter.b2b.transport.AppInterfaceListener.onMessage(AppInterfaceListener.java:141)
    at oracle.tip.transport.basic.FileSourceMonitor.processMessages(FileSourceMonitor.java:903)
    at oracle.tip.transport.basic.FileSourceMonitor.run(FileSourceMonitor.java:317)

    2009.09.09 to 10:40:03:682: Thread-16: B2B - Error (ERROR) -: AIP-51505: General Validation error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2352)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1618)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:976)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1167)
    at oracle.tip.adapter.b2b.transport.AppInterfaceListener.onMessage(AppInterfaceListener.java:141)
    at oracle.tip.transport.basic.FileSourceMonitor.processMessages(FileSourceMonitor.java:903)
    at oracle.tip.transport.basic.FileSourceMonitor.run(FileSourceMonitor.java:317)

    2009.09.09 to 10:40:03:685: Thread-16: B2B - Error (ERROR) -: AIP-51505: General Validation error: error -: AIP-51505: General Validation error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2352)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1618)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:976)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1167)
    at oracle.tip.adapter.b2b.transport.AppInterfaceListener.onMessage(AppInterfaceListener.java:141)
    at oracle.tip.transport.basic.FileSourceMonitor.processMessages(FileSourceMonitor.java:903)
    at oracle.tip.transport.basic.FileSourceMonitor.run(FileSourceMonitor.java:317)
    Caused by: error -: AIP-51505: General Validation error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2298)
    ... 6 more

    concerning
    Suni

    Hello

    Since this isn't a document EDI and xml, please turn off translation in B2B.

    Kind regards
    Dheeraj

  • XEngine error - error from the XML parser

    Hello

    I configured EDI X 12 generic exchange for outgoing FTP. I generated data EDI841 of the B2B document editor. When I try to send xml 841, I get the following log in the b2b.log file


    Error in brief:
    5083: XEngine error - error in the XML parser.

    iAudit report:
    <? XML version = "1.0" encoding = "UTF-16"? > < AnalyzerResults Guid = "{29FD00C2-DE93-4B22-AD75-9462FDB54F3F}" > < ExecutionDate > Thursday, November 20, 2008 < / ExecutionDate > < ExecutionTime > 19:55:18 (normal time of the India) < / ExecutionTime > < AnalyzerReturn > Failed < / AnalyzerReturn > < NumberOfErrors > 1 < / NumberOfErrors > < ErrorByCategory > < Category Name = "Reject" > < name of gravity = 'Normal' > 1 < / gravity > < / category > < / ErrorByCategory > < status > completed < / status > < DataFile > < FilePath > D:\OraHome_ 2\ip < / FilePath > < FileName / > < LastModified / > < FileSize / > < DataURL > file:\\D:\OraHome_2\ip < / DataURL > < / DataFile > < AnalyzerErrors > < error ErrorCode gravity = "{C0046014-9F8C-4C50-8AD0-22176044D2D6}" = "Normal" category = "Reject" index = '1' ID = '50830000' > < ErrorBrief > 5083: XEngine error - XML parser error. < / ErrorBrief > < ErrorMsg > XML parser error. < / ErrorMsg > < ErrorObjectInfo > < 'ErrorLevel' > 0 = parameter name < / parameter > < parameter Name = "Name" > XData2Native < / parameter > < name of the parameter '_ec_dn_guid_' = > {BD729023-F5CD-497E-95CD-501129074879} < / parameter > < parameter = "_ec_index" > 0 name < / parameter > < name of the parameter = "ec_error_scope" > Document < / parameter > < / ErrorObjectInfo > < ErrorDataInfo > < Part1 / > < ErrData / > < Part3 / > < DataXPointer > < StartPos > 0 < / StartPos > < size > 0 < / size > < / DataXPointer > < / ErrorDataInfo > < / error > < / AnalyzerErrors > < / AnalyzerResults >
    2008.11.20 to 19:55:19:084: Thread-11: B2B - (DEBUGGING) = {C0046014-9F8C-4C50-8AD0-22176044D2D6} oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sErrorGuid
    2008.11.20 to 19:55:19:084: Thread-11: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sDescription = XML parsing error.
    2008.11.20 to 19:55:19:084: Thread-11: B2B - sBrDescription oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument (DEBUG) = 5083: XEngine error - error in the XML parser.
    2008.11.20 to 19:55:19:084: Thread-11: B2B - (DEBUGGING) ErrorLevel = 0 sParameterValue = oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName
    2008.11.20 to 19:55:19:084: Thread-11: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = sParameterValue Name = XData2Native
    2008.11.20 to 19:55:19:084: Thread-11: B2B - sParameterName oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument (DEBUG) = ecdn_guid_ sParameterValue = {BD729023-F5CD-497E-95CD-501129074879}
    2008.11.20 to 19:55:19:084: Thread-11: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = sParameterValue index ec= 0
    2008.11.20 to 19:55:19:084: Thread-11: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = ec_error_scope sParameterValue = Document
    2008.11.20 to 19:55:19:084: Thread-11: B2B - oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument (DEBUG) added pound key = {BD729023-F5CD-497E-95CD-501129074879}
    2008.11.20 to 19:55:19:552: Thread-11: B2B - lot of oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument (DEBUG) Position = 0
    2008.11.20 to 19:55:19:568: Thread-11: B2B - Error (ERROR) -: AIP-51505: General Validation error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2231)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1610)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:968)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1131)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage (MsgListener.java:833)
    at oracle.tip.adapter.b2b.data.MsgListener.run (MsgListener.java:400)
    at java.lang.Thread.run(Thread.java:534)

    2008.11.20 to 19:55:19:568: Thread-11: B2B - Error (ERROR) -: AIP-51505: General Validation error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2231)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1610)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:968)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1131)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage (MsgListener.java:833)
    at oracle.tip.adapter.b2b.data.MsgListener.run (MsgListener.java:400)
    at java.lang.Thread.run(Thread.java:534)

    2008.11.20 to 19:55:19:568: Thread-11: B2B - Error (ERROR) -: AIP-51505: General Validation error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2285)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1610)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:968)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1131)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage (MsgListener.java:833)
    at oracle.tip.adapter.b2b.data.MsgListener.run (MsgListener.java:400)
    at java.lang.Thread.run(Thread.java:534)

    2008.11.20 to 19:55:19:568: Thread-11: B2B - Error (ERROR) -: AIP-51505: General Validation error: error -: AIP-51505: General Validation error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2285)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1610)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:968)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1131)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage (MsgListener.java:833)
    at oracle.tip.adapter.b2b.data.MsgListener.run (MsgListener.java:400)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: error -: AIP-51505: General Validation error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2231)
    ... 6 more

    2008.11.20 to 19:55:19:568: Thread-11: B2B - (DEBUGGING) oracle.tip.adapter.b2b.engine.Engine:processOutgoingMessage, B2BDomainException
    2008.11.20 to 19:55:19:568: Thread-11: B2B - oracle.tip.adapter.b2b.engine.Engine:handleOutboundException (DEBUG) Update Error Message: error -: AIP-51505: General Validation error
    2008.11.20 to 19:55:19:568: Thread-11: B2B - (DEBUGGING) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState entry
    2008.11.20 to 19:55:19:584: Thread-11: B2B - message (DEBUG) AccessRepo:findBusinessMessageByB2BMessageId found successful with B2bMessageId: 96768985 and ProtocolMessageId 96768985
    2008.11.20 to 19:55:19:584: Thread-11: B2B - oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState (DEBUG) thread not found message.
    2008.11.20 to 19:55:19:584: Thread-11: B2B - oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState (DEBUG) update computer error message
    2008.11.20 to 19:55:19:662: Thread-11: B2B - (DEBUGGING) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState output
    2008.11.20 to 19:55:19:662: Thread-11: B2B - (DEBUGGING) oracle.tip.adapter.b2b.engine.Engine:handleOutboundException line Update Native event Tbl
    2008.11.20 to 19:55:19:662: Thread-11: B2B - (DEBUGGING) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:updateNativeEvtTblRow entry
    2008.11.20 to 19:55:19:662: Thread-11: B2B - message (DEBUG) AccessRepo:findBusinessMessageByB2BMessageId found successful with B2bMessageId: 96768985 and ProtocolMessageId 96768985
    2008.11.20 to 19:55:19:662: Thread-11: B2B - oracle.tip.adapter.b2b.msgproc.DbAccess (DEBUG):

    * DbAccess:updateNativeEvtTblRow:tip_wireMsg not found wiremsg
    2008.11.20 to 19:55:19:662: Thread-11: B2B - (DEBUGGING) oracle.tip.adapter.b2b.engine.Engine:handleOutboundException notification App
    2008.11.20 to 19:55:19:662: Thread-11: B2B - enter engine: notifyApp (DEBUG)
    2008.11.20 to 19:55:19:662: Thread-11: B2B - engine queue (DEBUG) AQJMSCorrelationID = 3AB8B0051B5E4C17A7D3DEF093027FF8
    2008.11.20 to 19:55:19:662: Thread-11: B2B - notifyApp:notifyApp (DEBUG) the exception ip message queue:
    < exception xmlns = "http://integration.oracle.com/B2B/Exception" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    < correlationId > 96768985 < / correlationId >
    < b2bMessageId > 96768985 < / b2bMessageId >
    < errorCode > AIP-51505 < / errorCode >
    < > 5083 errorText: XEngine error - XML parser error. < / errorText >
    < errorDescription >
    <! [CDATA [info from the Machine: (PC022350)]]
    XML parsing error.  []] >
    < / errorDescription >
    < errorSeverity > 2 < / errorSeverity >
    < / exception >
    2008.11.20 to 19:55:19:662: Thread-11: B2B - (DEBUGGING) AQJMSCorrelationID = 3AB8B0051B5E4C17A7D3DEF093027FF8
    2008.11.20 to 19:55:19:755: Thread-11: B2B - output engine: notifyApp (DEBUG)
    2008.11.20 to 19:55:19:755: Thread-11: B2B - oracle.tip.adapter.b2b.engine.Engine:handleOutboundException (DEBUG) update successfully Error Message: error -: AIP-51505: General Validation error
    2008.11.20 to 19:55:19:755: Thread-11: B2B - validation DBContext (DEBUG): enter
    2008.11.20 to 19:55:19:755: Thread-11: B2B - validation DBContext (DEBUG): Transaction.commit)
    2008.11.20 to 19:55:19:755: Thread-11: B2B - (DEBUGGING) DBContext commit: leave
    2008.11.20 to 19:55:19:755: Thread-11: B2B - (DEBUGGING) oracle.tip.adapter.b2b.data.MsgListener:onMessage output

    Please help me solve this problem.

    a special character at the beginning of the file (before even the tag ) Please make sure that the XML is valid, no need to turn off validation w.

  • Could not create constants/controls/indicators from the XML parser

    Is there a reason I can't create a constant/control/indicator of the XML parser function ref (by right clicking)? I need to make the Subvi in build/read xml files, and it's really impossible without this ability.

    LabVIEW 2012 f3

    This bug has already been reported (CAR 357092) and should be corrected in the next service pack release. For now, here is a workaround:

    "" "" "1. create an indicator of reference from functions ' programming ' file IO" XML "XML parser" New.vi.
    2. right click on the new terminal of indicator 'DOM Document Out' and select Create > command (or indicator).

    3. right click on the new indicator of control / and choose Select XML Parser Class. Then you can choose what class you need.

  • The XML parsing

    I get an XML from a URL and try to analyze, but his does not work. The xml code is like this:

    HTML here

    My code is as follows:

    DocumentBuilderFactory dbf1 = DocumentBuilderFactory.newInstance();
                    dbf1.setValidating(false);
                    dbf1.setExpandEntityReferences(true);
                    dbf1.setIgnoringComments(true);
                    dbf1.setNamespaceAware(false);
                    db = dbf1.newDocumentBuilder();
                    try {
                        doc = db.parse(input);
                    } catch (SAXException e) {}
                    NodeList list = (NodeList) doc.getElementsByTagName("node1");
                    System.out.println("VALUE:" + list.item(0).getFirstChild().getTextContent());
    

    The System.out.println prints VALUE: null, while the name of the node of printing prints the correct value, and list.length is 1.

    What's wrong? Could the HTML tags be spoil it?

    Ugh... I removed the dbf1.setIgnoringComments (false); true and it works... Thank you

  • The XML parsing problems

    I started with the sample of XML parsing and tried to get a simple user interface that loads buttons with the value of a child node (more later to go to a new screen and analyze another XML code).  When I analyze the XML code, I get the knots, but I don't get the values.  My example of XML is generated.

    Example of XML data:

    
    
    
    
             Bugs     BugsXML.action 
    
    
    

    Code:

    import java.io.InputStream;
    
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    
    import mbt.util.DataUtils;
    import net.rim.device.api.system.Application;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.RichTextField;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.xml.parsers.DocumentBuilder;
    import net.rim.device.api.xml.parsers.DocumentBuilderFactory;
    
    public class XMLViewer extends UiApplication {
    
      MainScreen _screen = new MainScreen();
      public static final boolean isTest = true;
      ConnectionThread _conThread;
      public final String xmlUrl;
    
      public static void main(String args[]) {
        XMLViewer viewer = new XMLViewer();
        viewer.enterEventDispatcher();
      }
    
      public XMLViewer() {
        this.xmlUrl = "http://localhost:8080/FooXML.action";
        this._screen.setTitle("XML Viewer");
        this._screen.add(new RichTextField("Requesting update..."));
        this._screen.add(new SeparatorField());
        pushScreen(this._screen);
        this._conThread = new ConnectionThread();
        this._conThread.start();
      }
    
      public void updateField(String name, String action) {
        synchronized (Application.getEventLock()) {
          ButtonField button = new ButtonField(name,
            ButtonField.CONSUME_CLICK | ButtonField.FOCUSABLE |
            ButtonField.USE_ALL_WIDTH){
              protected boolean navigationClick(int status, int time) {
                System.out.println("Name: " + this.getLabel());
                return true;
              }
          };
          this._screen.add(button);
        }
      }
    
      private class ConnectionThread extends Thread {
        public ConnectionThread() {
          super();
        }
        public void run() {
          Document doc;
          try {
            int i,j;
            DocumentBuilderFactory docFactory =           DocumentBuilderFactory.newInstance();
            DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
            InputStream is = DataUtils.getXMLActions(xmlUrl);
            if (is == null) {
              System.out.println("InputStream is null!");
              return;
            }
            doc = docBuilder.parse(is);
            doc.getDocumentElement().normalize();
            NodeList list = doc.getElementsByTagName("action");
            for (i=0;i
    

    I get this result:

    HTTP STATUS OKItem: 1 has name: name has text: null has value: nullItem: 3 has name: url has text: null has value: null
    

    You can see this link, it may be useful for you

    http://supportforums.BlackBerry.com/T5/Java-development/help-with-parsing-XML-XMLParseDemo-Java/TD-p...

  • [request] The XML parsing

    
    7Eagle kids Volunteer6Volunteer IT5Usher Umum4Pendoa3Multimedia2Creative Ministry1Praise and Worship
    

    This is my XML

    My question is:

    How to read on my blackberry and view it?

    can I get the data as a String type?

    Thank you very much

    hope you can help me

    Sorry for my bad English

    package mypackage;
    import javax.microedition.io.*;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.xml.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    
    class XML_Parsing_Sample extends UiApplication{
        //creating a member variable for the MainScreen
        MainScreen _screen= new MainScreen();
        //string variables to store the values of the XML document
        String _node,_element;
        Connection _connectionthread;
    
        public static void main(String arg[]){
            XML_Parsing_Sample application = new XML_Parsing_Sample();
            //create a new instance of the application
            //and start the application on the event thread
            System.out.println("lalalala");
            application.enterEventDispatcher();
        }
    
        public XML_Parsing_Sample() {
            _screen.setTitle("XML Parsing");//setting title
            _screen.add(new RichTextField("Requesting....."));
            _screen.add(new SeparatorField());
    
            pushScreen(_screen); // creating a screen
            //creating a connection thread to run in the background
            _connectionthread = new Connection();
            _connectionthread.start();//starting the thread operation
        }
    
        public void updateField(String node, String element){
            //receiving the parsed node and its value from the thread
            //and updating it here
            //so it can be displayed on the screen
            String title="Title";
            _screen.add(new RichTextField(node+" : "+element));
    
            if(node.equals(title)){
                _screen.add(new SeparatorField());
            }
        }
    
        private class Connection extends Thread{
            public Connection(){
                super();
    
            }
    
            public void run(){
                // define variables later used for parsing
                Document doc;
                StreamConnection conn;
    
                try{
                    //providing the location of the XML file,
                    //your address might be different
    
                    conn=(StreamConnection)Connector.open
                      ("http://localhost/ms/write.xml");
                    //next few lines creates variables to open a
                    //stream, parse it, collect XML data and
                    //extract the data which is required.
                    //In this case they are elements,
                    //node and the values of an element
                    DocumentBuilderFactory docBuilderFactory
                      = DocumentBuilderFactory. newInstance();
                    DocumentBuilder docBuilder
                      = docBuilderFactory.newDocumentBuilder();
                    docBuilder.isValidating();
                    doc = docBuilder.parse(conn.openInputStream());
                    doc.getDocumentElement ().normalize ();
                    NodeList list=doc.getElementsByTagName("*");
                    _node=new String();
                    _element = new String();
                    //this "for" loop is used to parse through the
                    //XML document and extract all elements and their
                    //value, so they can be displayed on the device
    
                    for (int i=0;i
    

    I used this source code, but nothing is displayed...

    and don't forget, I am a new blackberry device programming, so I then I thank you if you can explain it in the explanation of "simple".

    God bless you

    Hello peter, how are you?

    Thanks for the reply...

    package mypackage;
    import javax.microedition.io.*;
    import javax.wireless.messaging.Message;
    
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.xml.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    
    class XML_Parsing_Sample extends UiApplication{
        //creating a member variable for the MainScreen
        MainScreen _screen= new MainScreen();
        //string variables to store the values of the XML document
        String _node,_element;
        Connection _connectionthread;
    
        public static void main(String arg[]){
            XML_Parsing_Sample application = new XML_Parsing_Sample();
    
            //create a new instance of the application
            //and start the application on the event thread
            application.enterEventDispatcher();
        }
    
        public XML_Parsing_Sample() {
            _connectionthread = new Connection();
            _connectionthread.start();//starting the thread operation
            _screen.setTitle("XML Parsing");//setting title
            _screen.add(new RichTextField("Requesting....."));
            _screen.add(new SeparatorField());
    
            pushScreen(_screen); // creating a screen
            //creating a connection thread to run in the background
    //        _connectionthread = new Connection();
    //        _connectionthread.start();//starting the thread operation
        }
    
        public void updateField(String node, String element){
            //receiving the parsed node and its value from the thread
            //and updating it here
            //so it can be displayed on the screen
            String title="Title";
            _screen.add(new RichTextField(node+" : "+element));
    
            if(node.equals(title)){
                _screen.add(new SeparatorField());
            }
        }
    
        private class Connection extends Thread{
            public Connection(){
                super();
    
            }
    
            public void run(){
                // define variables later used for parsing
                Document doc;
                StreamConnection conn;
    
                try{
                    //providing the location of the XML file,
                    //your address might be different
    
                    conn=(StreamConnection)Connector.open
                      ("http://localhost/ms/write.xml");
                    //next few lines creates variables to open a
                    //stream, parse it, collect XML data and
                    //extract the data which is required.
                    //In this case they are elements,
                    //node and the values of an element
                    DocumentBuilderFactory docBuilderFactory
                      = DocumentBuilderFactory. newInstance();
                    DocumentBuilder docBuilder
                      = docBuilderFactory.newDocumentBuilder();
                    docBuilder.isValidating();
                    doc = docBuilder.parse(conn.openInputStream());
                    doc.getDocumentElement ().normalize ();
    
                    NodeList list=doc.getElementsByTagName("root");
    
                    _node=new String();
                    _element = new String();
                    int n = list.getLength();
                    String[] choices= new String[n];
                    //this "for" loop is used to parse through the
                    //XML document and extract all elements and their
                    //value, so they can be displayed on the device
    
                    for (int i=0;i
    

    I already have the code, but nothing appeared.

    I think that there is something wrong with my code (the one in bold)

    and I get all confused, there are 2 methods for parsing xml, DOM and SAX.

    I don't know what they are... and how to use...

    can you help me pleaseee peter ?

    appriciate your help

  • Problem with to access the XML nodes whose namespace

    Hello
    I have a XML file with the following format;

    "" "" "< graphml version ="1.3"xmlns =" http://graphml.graphdrawing.org/xmlns/graphml ' xmlns:y = ' http://www.yworks.com/xml/graphml ' xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance" > "

    < graph id = 'G' edgedefault 'ordered' = >

    < key data 'd11' = >
    < y: SharedData >
    < name there: Brush = "SolidBrush" color = "Black" id = "1" / >
    < / y: SharedData >
    < / data >

    < node id = "G:n0" >
    < y: Labels >
    < y: Text > <! [CDATA [start]] > < / Text: y >
    < / y: Labels >
    < / node >

    < node id = "G:n1" >
    < y: Labels >
    < y: Text > <! [CDATA [end]] > < / Text: y >
    < / y: Labels >
    < / node >

    < / chart >

    < / graphml >


    I access this file as < mx:XML id = "layoutXml" source = "tmp.xml" / > "

    I have no application debugging and found that the layoutXml object contains the xml file as it is. Now when I try to access any child node of layoutXml, every time I found null. Same instruction layoutXml.graph.toXMLString () or layoutXml.graph.toString () returns null.

    I have tryied the following approach as well, but did not work,
    var nameSpace:Namespace = new Namespace (" http://www.yworks.com/xml/graphml");
    var str:String = layoutXml.graph.node. (@id == ' G:n0").nameSpace::Labels.nameSpace::Text.toXMLString();")
    also, this property returns null.

    If anyone has the solution, please answer.

    Thank you.

    Namespace var sets default namespace:
    lack of namespace xml = nameSpace;

    You should then be able to reference nodes normally.

    Tracy

  • I get random failures to load a page with the XML parsing error: entity not defined using firefox 4

    This didn't happen with the version 3 x, nor with the previous v4. Using the arrow to the left and clicking on the previous page request usually works ok. It happens several times a day. Full error is

    XML parsing error: undefined entity
    Location: jar:jar:file:///C:/Documents%20and%20Settings/shirley/Application%20Data/Mozilla/Firefox/Profiles/4txi20jj.default/extensions/ [email protected]! /chrome/bandwidthmeter.jar!/content/netError.XHTML

    392, column 33 line number:

    & netOffline.longDesc;

    I am also getting this error and have been able to understand that its caused by the Bandwidth_Meter_and_Diagnostics - 1.2.5.xpi. This deactivation seems to have stopped the error, but is a major nuisance.

  • The XML parser error when you set the NTP in UCS Server

    When you try to configure NTP servers (using IP addresses) when http would be in UCS C220 servers, received an XML parser error and NTP server configuration did not.  Ideas?

    Hey John,

    You can set the NTP CLI/SSH servers to host?

    -Wes

  • Try using Nero Startsm It Show unable to create the Instance of the Xml parser, please reinstall Microsoft XML Core Services (MSXML) 4.0 Sp2 or later

    Restall Microsoft XML Core Service MSXML 4.0 Sp2 or higher what it means

    This means, * reinstall * not * Tassel * MS XML Core Services MSXML 4.0 SP2 or later.

    There is a newer version-

    MSXML 4.0 SP3 is a complete replacement of MSXML 4.0, MSXML 4.0 SP1 and MSXML 4.0 SP2. This service pack provides a number of security enhancements and improved reliability.
    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=7f6c0cb4-7a5e-4790-a7cf-9e139e6819c0&displaylang=en

    BTW - for future reference-

    How to ask a question:
    http://support.Microsoft.com/kb/555375

    and

    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/1467f44b-ee27-4F7D-98d7-f1c4b35b3395
    What information to post in the Windows Update forum

    Windows Update forum is one of the three forums that doesn't have different forums for different versions of Windows (Internet Explorer and the game are the others).  With this in mind, we ask that you postat LEAST the following information.  If you don't know how to find some of the information and then post what you can and let us know that you need help to find information.

    Minimum information to validate:
    Version of Windows and Service pack level. (Windows XP Home Edition, SP3; Vista Home Premium, SP1; Windows 7 Ultimate, etc...)
    Post also if you use 32-bit or the 64 bit version of Windows.

    Update the number of the last update installed before any problem.  If you do not know the number of update, then give the date that the update has been installed.  The number of updates update failed.

    Error code updates failed or if you think an update caused a blue screen, give the blue screen error codes.

    Other information to validate:
    Measures already taken to correct the problem and the results of the measures.

    If the question is never happened before with other updates.

    A few other useful parts are:
    What program antivirus you use, if it is up-to-date, and there has never been any other installed antivirus program.
    If your version of Windows has been upgraded from a previous version or if it came with (or clean installed with) the version you are currently using.

    TaurArian [MVP] 2005-2011. The information has been provided * being * with no guarantee or warranty.

  • The XML parsing returns a Cartesian join

    I have the following table:
    CREATE A TEMP_XML OF THE SYS. XMLTYPE
    TABLESPACE HPS_LND_DATA
    VARRAY XMLDATA AS LOB STORE
    (
    ALLOW ONLINE STORAGE
    8192 CHUNK
    RETENTION
    AVERAGE COMPRESSION
    CACHE
    INDEX)
    TABLESPACE HPS_LND_DATA)
    )
    NOPARALLEL
    /

    Each record in the table has the following XML structure:
    < c id = "MMLab" t = "2009-10-25 12:02:00 AM" >
    < d >
    < nv n = v 'BootRomVersion' = "1.1505" / >
    < n nv v="1.6.25075.203"/ "ClientVersion" = >
    < nv n = v "CurrentTime" = "2009-10-25 12:02:00 AM" / >
    < nv n = v "LastRebootTime" = "09/10/2009 15:32:53" / >
    < nv n = v 'CPUSpeed' = "297" / >
    < nv n = v "ServiceID" = "" / >
    < nv n = v 'AvailablePhysicalMemory"="17502208"/ >
    < nv n = v 'AvailableVirtualMemory"="8519680"/ >
    < nv n = v "AllocatedPhysicalMemory" = "22003712" / >
    < nv n = v "AllocatedManagedMemory" = "2898136" / >
    < nv n = v "CommittedHeapMemory" = "1511424" / >
    < nv n = v "AllocatedHeapMemory" = "1387584" / >
    < nv n = v 'HeapEfficiency' = '91' / >
    < nv n = v "AvailableVideoMemory" = "5052864" / >
    < nv n = v "DrivePresent" = "True" / >
    < nv n = v "DiskSizeInMB" = "305082" / >
    < nv n = v 'DiskFreeInMB' = "21369" / >
    < nv n = v 'DvrSizeInMB' = "283648" / >
    < nv n = v "PercentDvrFree" = "100" / >
    / < d: >
    / < c >

    I am using the following query:
    SELECT EXTRACT (object_value, ' /c/@id').getstringval () AS ID,)
    To_date (EXTRACT (object_value, ' /c/@t').getstringval (),))
    "(mm/dd/yyyy hh: mi: ss AM') AS TIMESTAMP,
    EXTRACT (VALUE (li), ' /nv/@n').getstringval () AS xml_parm,)
    VALUE (li). EXTRACT (' (/nv/@v').getstringval) AS xml_value, li.*)
    OF temp_xml, TABLE (XMLSEQUENCE (EXTRACT (object_value, "/ c/d/nv"))) li

    The application of works very well if I limit the output to a single record in the temp_xml table, but if I ask more than one record I get a Cartesian result, how can I fix?

    You shouldn't have to join here.

    You can see from the output that is a mistake and you get a Cartesian product?

    Or are you unnecessarily worry a MERGE JOIN CARTESIAN and a SORT of BUFFER in the execution plan?

  • Download rootnodes in the XML parsing

    Hello

    I'm on 11g, utf-8

    In light of this:

    with xmltest as

    (

    Select

    XmlType ("< hope >

    < id nr = "10" >

    < kursist > nummer 1 < / kursist >

    < kursist > nummer 2 < / kursist >

    < kursist > nummer 3 < / kursist >

    < kursist > nummer 4 < / kursist >

    < kursist > nummer 5 < / kursist >

    < kursist > nummer 6 < / kursist >

    < /nr >

    < id nr = "20" >

    < kursist > nummer 1 < / kursist >

    < /nr >

    < id nr = "30" >

    < kursist > nummer 1 < / kursist >

    < kursist > nummer 2 < / kursist >

    < /nr >

    (< / hope > ') text

    of the double

    )

    Select the value element (t), root of value (t) .getrootelement)

    of cross join XMLTABLE xmltest ('/ / node()' passing text)

    + 6

    where value (t) .getrootelement () is not null

    ;

    -----------

    Is it possible to get the whole "nodename" to everything?  That is to say. hope/nr/kursist, kursis/kursist etc...

    As in connect by sys connect along the way.

    concerning

    Mette

    Does that help?

    "Dashboard".

  • Need to know the current table whose stats are collected

    All,
    I ran DBMS_STATS.gather_schema_stats on my DB for a schema with a degree = > 32. I want to know for which table the package is currently gathering statistics.
    I tried to see the columns num_rows & last_analyzed from user_tables & user_tab_partitions for this information, but without success.

    Regds,
    Malika

    In session of v$ get hash_value then ask in V$ sql with this hash_value in sql_hash_value...

    Select sql_text from v$session, V$sql where hash_value = sql_hash_value and sid = 
    
  • the XML parsing problem


    Solved...

    I analyzed using

    String _nodeName = node.getNodeName ();

    _nodeValue = doc. GetElementsByTagName (_nodeName). Item (0) .getFirstChild () .getNodeValue ();

    and his works fine.

Maybe you are looking for

  • Time machine logo disappears on desktop

    for some strange reason the time Machine logo (the arrow-dial clock in blue and white) no longer appear on the external hard drive shown in my office. The time machine still works but has metro logo-wise - and only on a single machine. What needs twe

  • Satellite L300D-10B - need to replace the HARD drive

    Hello. I have a Toshiba satellite L300D-10B and I need to replace the broken hdd in my laptop.It is a hitachi 160 GB at 5400 RPM SATA. Is it possible to move to a greater capacity (500 GB) and a little faster (7200 RPM).is - that someone at - he had

  • New Acer Aspire user T3-710

    Hello New owner of a T3-710 here and can not say that I am happy. No items in the box similarly not a simple guide for the connection.  The only thing was a document showing how to connect the hard wired keyboard (not Applicable to my version) or plu

  • Remote Desktop error

    I get the error "the remote session was disconnected because the client access license remote desktop has been changed" stored on this computer when you try to connect to a computer server 2003.  I am running Windows 7, but have no problem connecting

  • Win XP, 7 and 8 legitimate licenses and pay to secure my system turns?

    Ive bought a computer with installed Windows 8, which means no DVD, drive hard, crashed at 3 weeks after the end of the warranty, but from the beginning has been unable to make recovery disks as system said "cannot find the partition", having to pay