Text truncated in XML using URLLoader?

IM loading an xml file. The file is approximately 500 Kbs. But the xml file is cut for some reason any. Can someone explain to me why?

trunk.PNG

It is a screenshot of the trace in the XML file. So yes, he shoots the file in and the bed is and I can trace it. But in the middle of the track, I get '[... text truncated]' and the rest of the data prints as usual. I don't know even where to start.

Found. It was the record that gave me error, but I was sending data to the wrong variable as well.

Tags: Adobe Animate

Similar Questions

  • How to read the text of an XML with the dom parser?

    Hi all

    It's my code. How will I be able to read the text inside the xml file using dom parser?

    my xml file is like this...



     
        LLEYTON
        Hewitt
        Australian
       
        1
        897
       

     


        André
        Agassi
        American
       
        2
        679
       

     

    which I stored in _xml.

    InputStream is = getClass () .getResourceAsStream (_xml);

    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance ();

    DocumentBuilder db = dbf.newDocumentBuilder ();

    Doc document = db.parse (is);

    NodeList nl = doc.getElementsByTagName("*");

    for (int i = 0; i)< nl.getlength();="">

    {

    System.out.println ("node name" + nl.item (i) .getNodeName ());  Player, firstname, lastname, tennis o/p

    System.out.println ("node value" + nl.item (i) .getTextContent ());  o/p value null, null, null, null

    }

    I want the text in the first name should get displayed as "Lleyton" and any other text in other tags as Andre/Agassi/American/2/679

    You can install JDE and operates the samples, you will find XMLDEMO that will help you read XML application blackberry;

    good luck;

  • How can I recursively parse an xml using XQuery document?

    I have an open and I have to using XQuery in Response.xml can transform someone give me an idea how to analyze recursive Xml using XQuery documents. Any help will be appreciated. Thanks in advance

    Open

    " < = xmlns:ns0 ns0:GlobalRoutePlanServiceGOPResponse ' http://www.example.org/input ">

    < GlobalRoutePlanServiceResponse >

    < response >

    Buid_1 < Buid > < / Buid >

    SalesOrderId_1 < SalesOrderId > < / SalesOrderId >

    EODD_1 < EODD > < / EODD >

    LODD_1 < LODD > < / LODD >

    < legs >

    < leg >

    < level > 1 < / level >

    < Resources > ShipMode_1 < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg >

    < leg >

    < niv.2 > < / level >

    < Resources > ShipMode_2 < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg >

    < leg >

    < level > 3.1 < / level >

    < resources > ShipMode_3.1 & amp; < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg >

    < leg >

    < level > 4.1 < / level >

    < Resources > ShipMode_4.1 < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg > < / foot >

    < / foot >

    < / foot >

    < / foot >

    < leg >

    < level > 3.2 < / level >

    < Resources > ShipMode_3.2 < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg >

    < leg >

    < level > 4.2 < / level >

    < Resources > ShipMode_4.2 < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg > < / foot >

    < / foot >

    < / foot >

    < / foot >

    < / foot >

    < / foot >

    < / foot >

    < / foot >

    < / legs >

    < / answer >

    < / GlobalRoutePlanServiceResponse >

    < / ns0:GlobalRoutePlanServiceGOPResponse >

    Response.Xml

    " < = xmlns:ns0 ns0:InputParameters ' http://xmlns.Oracle.com/pcbpel/adapter/DB/SP/GOP_DB_FSL_Msg_Persist_SVC "> "

    < ns0:P_LEG >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 1 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_1 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 2 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_2 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 3.1 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_3.1 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 4.1 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_4.1 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 3.2 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_3.2 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 4.2 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_4.2 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < / ns0:P_LEG >

    < / ns0:InputParameters >

    You can use recursive expressions function XQuery to browse down the tree (even if it's more than a job for XSLT), but in this case, it is probably easier to use a descendant axis:

    declare namespace ns0 = "http://xmlns.oracle.com/pcbpel/adapter/db/sp/GOP_DB_FSL_Msg_Persist_SVC";

    declare namespace ns1 = "http://www.example.org/INPUT";

    {

    for $i in $request / ns1:GlobalRoutePlanServiceGOPResponse / GlobalRoutePlanServiceResponse/response/legs / / leg

    where exists($i/Level)

    return

    {$i} / level/text)

    {$i} / ShipMode/text)

    }

    Output:

    http://xmlns.Oracle.com/pcbpel/adapter/DB/SP/GOP_DB_FSL_Msg_Persist_SVC">

    1

    ShipMode_1

    2

    ShipMode_2

    3.1

    ShipMode_3.1 &

    4.1

    ShipMode_4.1

    3.2

    ShipMode_3.2

    4.2

    ShipMode_4.2

  • Reading XML using XSLT data

    I have a problem of reading xml using XSLT data. There is a CASE - 900000016, has two sequences. SEQ NO1 and NO2 SEQ. Each sequence has an activity. I try to display the info of the activity under corresponding sequences.

    SEQ 01

    Activity

    SEQ 02

    Activity

    This is the xml file.

    <? XML version = "1.0" encoding = "utf-8" standalone = "yes"? >
    < case >
    < EventList >
    < PAEvent >
    < CASENO > 900000016 < / CASENO >
    < > 01 SEQ_NO < / SEQ_NO >
    APPROVED < STATUS > < / STATUS >
    < REASON > < / REASON >
    < PR_NO > 506024 < / PR_NO >
    < SRV_BEG_DAT > 11/02/2010 < / SRV_BEG_DAT >
    < SRV_END_DAT > 11/02/2010 < / SRV_END_DAT >
    < / PAEvent >
    < PAEvent >
    < CASENO > 900000016 < / CASENO >
    < > 02 SEQ_NO < / SEQ_NO >
    APPROVED < STATUS > < / STATUS >
    < TYPE > < / TYPE >
    < REASON > < / REASON >
    < PR_NO > < / PR_NO >
    < SRV_BEG_DAT > 11/02/2010 < / SRV_BEG_DAT >
    < SRV_END_DAT > 28/02/2010 < / SRV_END_DAT >
    < / PAEvent >
    false < hasErrors > < / hasErrors >
    < / EventList >
    < ActivitiesList >
    < PAActivity >
    < CASE_NO > 900000016 < / CASE_NO >
    < > 01 SEQNO < / SEQNO >
    < ACTVTY_LN_NO > 03 < / ACTVTY_LN_NO >
    < ACTVTY_TYP >: < / ACTVTY_TYP >
    < UNIT_PRC > 16.2500 < / UNIT_PRC >
    < / PAActivity >
    < PAActivity >
    < CASE_NO > 900000016 < / CASE_NO >
    < > 02 SEQNO < / SEQNO >
    < ACTVTY_LN_NO > 01 < / ACTVTY_LN_NO >
    < ACTVTY_TYP > P < / ACTVTY_TYP >
    < UNIT_PRC > 0.0000 < / UNIT_PRC >
    < / PAActivity >
    false < hasErrors > < / hasErrors >
    < / ActivitiesList >
    < / Cases >


    XSLT code

    <? XML version = "1.0" encoding = "utf-8"? >
    < xsl: stylesheet version = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" >
    < xsl: template match = "Case" >
    < div Id = "dvEvents" align = "center" >
    <!--list of events-->
    < table width = "75%" border = "0" >
    < style tr = "text-align: left;" background-color: gray; ">
    < td colspan = "8" class = "SmallBlackFontBolder" >
    < b > < /b > events
    < table >
    < /tr >
    < xsl: for-each select = "EventList/PAEvent" >
    < b >
    < class td = "SmallBlackFontBold" style = "" text-align: left; "width ="8% "> Seq No.: < table >"
    < class td = "SmallGreenFontBold" align = "left" width = "10%" >
    < xsl: value-of select = "SEQ_NO" / >
    < table >

    < class td = "SmallBlackFontBold" align = "left" width = "8%" > status: < table >
    < td align = "left" width = "11%" >
    < xsl: value-of select = "STATUS" / >
    < table >
    < /tr >

    < b >
    < td >
    <!--get the list of activities-->
    < xsl: for-each select = "Case/ActivitiesList/PAActivity" >
    < xsl: if test = "Case, EventList, PAEvent, SEQ_NO = case, ActivitiesList, PAActivity, SEQNO" >
    < table width = "75%" >
    < b >
    < class td = "SmallBlackFontBold" style = "" text-align: left; "width ="8% "> Seq No.: < table >"
    < class td = "SmallGreenFontBold" align = "left" width = "10%" >
    < xsl: value-of select = "Case, ActivitiesList, PAActivity, SEQNO" / >
    < table >
    Unit price < td >: < table >
    < td align = "left" width = "11%" >
    < xsl: value-of select = "Case, ActivitiesList, PAActivity, UNIT_PRC" / >
    < table >
    < /tr >
    < /table >
    < / xsl: if >
    < / xsl: foreach >
    <!--get the list of activities-->
    < table >
    < /tr >

    < b >
    < class td = "SmallBlackFontBold" align = "left" width = "8%" > reason: < table >
    < td align = "left" width = "20%" >
    < xsl: value-of select = "PAEvent/EventList/reason" / >
    < table >
    < td > < table >
    < td > < table >
    < class td = "SmallBlackFontBold" align = "left" width = "14%" > PR_NO: < table >
    < td align = "left" width = "18%" >
    < xsl: value-of select = "PAEvent/EventList/PR_NO" / >
    < table >
    < /tr >

    < / xsl: foreach >
    < /table >

    < / div >
    < / xsl: template >
    < / xsl: stylesheet >

    Published by: 837989 on April 25, 2013 14:13
  • How can I replace a range / the text in an XML tag

    I want to replace a piece of text in an XML tag in a text frame.

    In my input parameters, I have the In-design page number, UID text frame in this page and the name of the XML tag within this block of text

    that surrounds my old text.

    which interface/function/command can I use who can help me to replace the existing text with the input text?

    for example:

    [old text] --> [new text]

    where [] is the XML tag with the name tag1.

    After a few trails and POC, I was able to write the piece of code below.

    It detects the start and end position of the marker and based on that we can replace the text inside. It will be useful.

    InterfacePtr data (signalMgr, UseDefaultIID());

    If (data == nil)

    {

    break;

    }

    UIDRef docRef = data-> GetDocument();

    InterfacePtr doc (docRef, IID_IDOCUMENT);

    IDataBase * db = docRef.GetDataBase ();

    Get the spread

    InterfacePtr spreadList (doc, UseDefaultIID());

    Int32 spreadCount is spreadList-> GetSpreadCount();.

    for (int32 spreadIndex = 0; spreadIndex)< spreadcount;="" spreadindex++="">

    {

    Get the reference to the spread

    UIDRef spreadUIDRef (db, spreadList-> GetNthSpreadUID (spreadIndex));

    Get the object of dissemination

    InterfacePtr spread (spreadUIDRef, UseDefaultIID());

    Int32 numberOfPages = spread-> GetNumPages();

    for (int32 nPage = 0; nPage)< numberofpages;="" npage++="">

    {

    UIDList pageItemList (db);

    spread-> GetItemsOnPage (nPage, & pageItemList, kFalse, kFalse);

    Browse page items and save on the UID of executives.

    Int32 pageItemListLength = pageItemList.Length ();

    for (int32 j = 0; j)< pageitemlistlength;="" j++="">

    {

    UIDRef pageItemRef = pageItemList.GetRef (j);

    InterfacePtr frame (pageItemRef, UseDefaultIID());

    If (frame-> IsTextFrame())

    {

    Now try to get the position of the Guide to the XML tag

    TextIndex 0 = startPos, endPos = 0;

    IXMLReferenceData * xmlReferenceData = Utils()-> QueryXMLReferenceData (pageItemRef);

    REF XMLReference = xmlReferenceData-> GetReference();

    IIDXMLElement * element = REF. Instantiate();

    InterfacePtr (REF.). Instantiate());

    TagUID UID = element-> GetTagUID();

    WideString elementName = element-> GetTagString();

    for (int32 i = 0; i < element-=""> GetChildCount(); i ++)

    {

    ChildRef = element XMLReference-> GetNthChild (i);

    InterfacePtr child_element (childRef.Instantiate ());

    tagUID = child_element-> GetTagUID();

    elementName = child_element-> GetTagString();

    Int32 index = 0;

    Utils()-> GetElementMarkerPositions (child_element, & startPos and endPos);

    startPos += 1; to proceed exclude the starting tag

    }

    }

    }

    } / / Browse pages spread

    }

  • Assign default names to fragment XML using XQuery

    Hello world!

    I need to add a default namespace declaration to a fragment of XML using XQuery. I wrote following statement to assign the fragment to $body:

    < SOAP - env:Body > {}
    {FN - bea: inlinedXML ($content / text ())}
    < / soap - env:Body >

    The problem is "$content / text ()" has no namespace declaration, so I need to assign a default namespace (xmlns = "" ") to it in order to apply some XQuery transformations to its content.

    I know it can be done easily with a XSLT, but I would like to use XQuery instead.

    Could someone tell me how can I perform this task?

    Thank you in advance,

    Daniel.

    Hello

    I suppose that you have two options here:

    (1) addition of namespace directly on the XML textual content in $content / text (), then call fn - bea: inlinedXML.
    Assuming that the implementation of XQuery in BEA supports the function fn: replace (according to the doc, he does-) or equivalent:

    fn-bea:inlinedXML( fn:replace($content/text(), '^<([^>]+)>', '<$1 xmlns="default_ns">') )
    

    For example, if $content / text () is

    TEST!
    

    The result will be:

    TEST!
    

    (2) the addition of namespace on the generated instance (that is, after the call to fn - bea: inlinedXML).

    It's a little more complex and it will take something like this:
    http://www.xqueryfunctions.com/XQ/functx_change-element-NS-deep.html

  • buttons and text boxes dynamic xml

    How can I implement the buttons to fill areas of text with dynamic text in an xml document?

    I want the 1 button to load some information on element1 in the text box when the button is wriggle on and then when the button is clicked it should open a new window browser for this element.

    then the 2 key will do the same in the same text, but with the info box for point 2

    I have 2 text boxes, one is called "title", which will have the name of the product, the other is named "ssnumber" and it will have the number of the product.

    I have an xml file. and I already did in as2 (with the help of ned and a few others) and it worked fine, but I just got word that people this accommodation only accepts as3. This is my first attempt at as3, it's very different.

    Here is the code I have for my book

    var xml

    loader: URLLoader = new URLLoader ();

    xmlLoader.addEventListener (Event.COMPLETE, loadXML);

    var xmlData:DML = new XML();


    function LoadXML (e:target): void {}

    xmlData = new (e.target.data);

    xmlLoader.load (newURLRequest ("products.xml"));

    but now I'm stuck. I know I must add button events

    () pedals.addEventListener

    MouseEvent.MOUSE_OVER... now what? and where do I add this code? and how do I contact text (title and ssnumber) areas?

    Here is my xml tags are also named title and ssnumber, is this ok, or should I change it?

    Picture 1.png

    :

    www.kglad.com/Files/forums/products.rar

  • When typing text cursor suddenly jumps to a point in the text already entered. Use Ctrl Z to recover. How to stop this?

    When you type text, cursor jumps suddenly to a point in the text already entered.  Use Ctrl Z to recover.  How to stop this?

    I use Windows 7 on a Dell Inspiron.

    I recently did a "clean boot" who has cured a problem of high CPU usage, but left me this cursor jumping problem.  I have to look at the screen as I type to be aware of these breaks that often occur at random.

    Hello Malcolm,

    Yours is a laptop? If so, you're probably brushing the touchpad with your Palm or fingers. The easiest way around this problem is with an external mouse with touchpad disabled. To disable the touchpad go to control panel, Manager of devices and look under the mouse or HID for her. Then, right-click on it and select Disable (not uninstall - it will reinstall itself only if you do).

    You can also connect an external mouse and select the option for Notification of Touchpad to disable the touchpad when an external mouse is present. This setting can be found in the mouse properties dialog.

    Let me know if this solves the problem for you.

    Kind regards

    BearPup

  • Best way to Parse XML using Dreamweaver CC 2015.3

    I was on a wild goose chase - trying to figure out how to parse XML using DW CC

    every article I read, says something about XML & XSLT, but it is no longer available in the new CC - I read about using jQuery or php, but have not yet find a resource to learn specifically "using DW CC.

    I'm willing to learn how to parse XML with DW CC but I would get a definitive direction to go before I'm trying to learn something that adobe will put in 'end of life '.

    advice or links to resources that can parse XML DW CC 2015 would be LARGELY APPRECIATED, thank you

    x 126 has written:

    What I'm asking is...

    1. What is the best procedure to insert XML into a page using DW CC 2015 as my editor?
    a. what happened to spry? b. what happened to XSLT?

    As Nancy explained, Spry has been abandoned by Adobe, a few years ago.

    XSLT server behavior has been removed at the same time as other server behaviors Dreamweaver CC. The problem with most of the PHP server behaviors was that they were based on code that has been removed from PHP 7. The XSLT server behavior didn't rely on these features, but it was not the most friendly of server behaviors. XSLT is a complex language that is to be avoided when parsing XML unless you really know what you're doing.

    The easiest way to manipulate XML in Dreamweaver should use PHP SimpleXML. I've linked to the samples page in the PHP online documentation. Believe me, it's much easier than trying to do battle with XSLT. If you have a subscription to lynda.com, you can learn more about SimpleXML to my operational with SimpleXMLclass.

  • text truncated

    I have a HP Photosmart Premium all-in-one printer model C410c. windows XP Pro operating systems.  When I print a document containing words, the text sometimes comes out totally blurred. He also sometimes goes from text to text truncated intelligble. How can I fix this. I checked the preference settings and they are correct. The version of the driver is up to date

    chip912,

    I posted in your thread more recent here:

    http://h30434.www3.HP.com/T5/other-printing-questions/garbled-print/m-p/1654017#M66656

    Give the steps in the link provided and let us know if it helps.

    Good luck!

  • Adding text to an image using HP MediaSmart

    Good afternoon

    I want to know is there a way to add text to a photo using MediaSmart?  I know that you can, if you create a slide show or video.

    Robyn

    Hello

    Looks like it's just a basic photo editing software:

    http://support.HP.com/us-en/document/c02015814
       http://support.HP.com/us-en/document/c01496318

    Upgrade to another suite of Photo Editor can help:

    http://h20000.www2.HP.com/bizsupport/TechSupport/document.jsp?prodSeriesId=4042506&ObjectID=c01445945

    (You can enter text using Photo Creations).

    Kind regards.

  • Error trying to update the model XML using XML Publisher administrator

    Hello people,

    We are on R12.1.3

    I changed a condition in a report and you try to download the new model XML using XML Publisher administrator.

    When I click the button to apply, it is throwing an error "bad request".

    Navigation: XML Publisher Admin > data definitions > query report

    Click on the report name > click 'Update file', in addition to the data model > choose file > click Apply

    I get the below error

    Bad request

    Your browser has requested that this server could not understand.


    Now, I could not download a new model of XML.


    I'm doing something wrong.


    Kind regards

    Kris

    user10163762 wrote:

    Thanks Eugen and Hussein.

    The problem is not with the template.

    It seems to be a problem in this particular case.

    Transferred to another instance.

    However once I run the program, I can't display the output as flashes and disappears from the window of the browser.

    My colleague says, it's to do with the trusted site to download something from the browser.

    Can you please guide me on how to solve this problem?

    http://bit.LY/1k8e2vi

    Thank you

    Hussein

  • When I change the thickness (in points) of text/lines/etc by using the arrow icons the thickness of the line jumps instantly to 1000 pts. Why?

    ILLUSTRATOR - when I change the thickness (outline/stroke) (in points) of text/lines/etc by using the icons of arrow (upwards or downwards), the thickness of the line jumps instantly to 1000 pts. How can I adjust the settings to make this feature work, because I really need in many situations. Thanks in advance!

    1.JPG

    3.png

    koenk,

    The current pastor of the corrupt file bug/preferences units seems to be:

    (1) delete your preferences HERE (close HAVE and press Ctrl + Alt + Shift / Cmd + Option + shift during startup).

    (2) ensure that the parameters English (United States) system locale and the decimal point is. (dot/full stop, no, (comma) when the machine is restarted,)

    (3) launch HAVE again and see if the subject is cured.

    You can see a long discussion here:

    https://forums.Adobe.com/thread/1871389?q=units%20bug

  • Can I export the data (XML) using Acrobat Standard DC?

    I am currently using Adobe Acrobat XI which is allow me to export XML data from tools > forms > form additional Options > export data. I know this feature is also available in Acrobat Standard DC?

    Hi jack65464326,

    Yes, you can export the data (XML) using Acrobat Standard DC, refer to this KB document for help Acrobat help. Collection and management of the PDF to form data.

    Kind regards

    Nicos

  • Nested reading XML using XQUERY in the PL/SQL procedure

    I'm using Oracle 11 G.
    I have a PL/SQL procedure, which is reading XML using xquery XMLTYPE column in a table. The XML contains data of the DEPARTMENT and its SECTIONS. DEPARTMENT has a to-many with SECTIONS or a DEPARTMENT can have one or more SECTIONS, and there may be cases where the DEPARTMENT will have all SECTIONS.

    The XML structure is such that
    <DATA>
    label to identify a DEPARTMENT and all its corresponding SECTIONS.

    XML
    <ROWSET> 
    <DATA>
     <DEPARTMENT>
      <DEPARTMENT_ID>DEP1</DEPARTMENT_ID>
      <DEPARTMENT_NAME>myDEPARTMENT1</DEPARTMENT_NAME>
     </DEPARTMENT>
     <SECTIONS>
      <SECTIONS_ID>6390135666643567</SECTIONS_ID>
      <SECTIONS_NAME>mySection1</SECTIONS_NAME>
      </SECTIONS>
       <SECTIONS>
      <SECTIONS_ID>6390135666643567</SECTIONS_ID>
      <SECTIONS_NAME>mySection2</SECTIONS_NAME>
      </SECTIONS>
     </DATA>
     <DATA>
     <DEPARTMENT>
      <DEPARTMENT_ID>DEP2</DEPARTMENT_ID>
      <DEPARTMENT_NAME>myDEPARTMENT2</DEPARTMENT_NAME>
     </DEPARTMENT>
     <SECTIONS>
      <SECTIONS_ID>63902</SECTIONS_ID>
      <SECTIONS_NAME>mySection1</SECTIONS_NAME>
      </SECTIONS>
     </DATA>
    </ROWSET>
    XQUERY
    select
     department_id,
      department_name,
      sections_id,
      sections_name
    from
      OFFLINE_XML xml_list,
      xmltable(
        '
          for $department in $param/ROWSET/DATA
            return $department
        '
        passing xml_list.xml_file as "param"
        columns
          "DEPARTMENT_ID"   varchar2(100) path '//DEPARTMENT/DEPARTMENT_ID',
          "DEPARTMENT_NAME" varchar2(4000) path '//DEPARTMENT/DEPARTMENT_NAME',
          "SECTIONS_ID"     varchar2(100) path '//SECTIONS/SECTIONS_ID',
          "SECTIONS_NAME"   varchar2(4000) path '//SECTIONS/SECTIONS_NAME'
      ) section_list
    where
      xml_list.Status = 5
    The performance of the query, you receive an error
    ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton 
    sequence - got multi-item sequence
    It is natural because I have several sections, now how I'll handle this situation.

    It's the usual approach to manage several nested collections:

    SQL> select d.department_id
      2       , d.department_name
      3       , s.sections_id
      4       , s.sections_name
      5  from offline_xml t
      6     , xmltable(
      7         '/ROWSET/DATA'
      8         passing t.xml_file
      9         columns
     10           DEPARTMENT_ID   varchar2(20) path 'DEPARTMENT/DEPARTMENT_ID'
     11         , DEPARTMENT_NAME varchar2(30) path 'DEPARTMENT/DEPARTMENT_NAME'
     12         , SECTIONS        xmltype      path 'SECTIONS'
     13       ) d
     14     , xmltable(
     15         '/SECTIONS'
     16         passing d.sections
     17         columns
     18           SECTIONS_ID     varchar2(20) path 'SECTIONS_ID'
     19         , SECTIONS_NAME   varchar2(30) path 'SECTIONS_NAME'
     20      ) s
     21  ;
    
    DEPARTMENT_ID        DEPARTMENT_NAME                SECTIONS_ID          SECTIONS_NAME
    -------------------- ------------------------------ -------------------- ------------------------------
    DEP1                 myDEPARTMENT1                  6390135666643567     mySection1
    DEP1                 myDEPARTMENT1                  6390135666643567     mySection2
    DEP2                 myDEPARTMENT2                  63902                mySection1
     
    

Maybe you are looking for

  • Thunderbird for IOS

    Y at - it a Thunderbird for IOS. ?

  • Satellite A300 - no sound, the "speaker" with a red icon

    Hey there! So, I got this Toshiba sat idle until I decided to restore it to factory settings and start using it again. I remember exactly if I didn't sound the last time I started before restoring it, but now, after three reinstalls I've still no sou

  • Satellite 2410-303 does not illuminate

    Hello We have a system here on the bench with the following problem: -system does not light-with the inserted battery power LED keeps blinking yellow-connected to the network of continuous flashing yellow LED power-no fan or turns HARD drive noise-ot

  • Battery Lithium-ion for Compaq Presario CQ57 229WM

    Hello how are you my battery is damaged and have been wanting to replace Hp suport searched without result. Compaq Presario CQ57 229WM Specifications of the battery. -Replacement of Chemistry: Li-ionVoltage: 10.8V = 47WhCapacity: 4200mAhColor: black

  • 5Ms/s FPGA gate

    Looking at training courses, there are two courses of FPGA, one for applications with 5Ms/s. Can someone give me an idea of what are the differences of choice for development in these two areas. I'm trying to understand what knowledge is required to