Adding existing attribute of XML file

I have an XML "XML.xml" that contains the following structure:

<TagA>
     <TagB description = "example"/>
</TagA>

How, using JavaScript, add an attribute to the TagB to modify Xml.xml to include the following:

<TagA>
     <TagB description = "example" description2 = "example2"/>
</TagA>


N ° forget the docs from Adobe on this. You will get the docs a lot better on the web. Mozilla (for example) has some very good tutorials...

Search on Google.

Substances

Tags: InDesign

Similar Questions

  • How to check if a node exists in the XML file?

    I was asked to program a method to import data from xml files in our Coldfusion 8 Web site, I am new to the use of XML.

    My method worked however I encountered the following error:

    Element NETWORKORDER. SECONDARYADDRESS. CONTACTNAME is undefined in MYDOC.

    Investigation on the node in the XML file was not present.

    Is there a method I can use to resolve this error by checking if a node exists in the xml file, which works with my current code below?

    <!--> reading XML file
    < cffile action = "read" file = "D:\website\XML\#FileName#" variable = "myxml" >
    < cfset mydoc = XmlParse (myxml) >

    <!--> to extract data from the XML of NDS file
    < cfset aPrimaryContactName =(#mydoc.NetworkOrder.PrimaryAddress.ContactName#) >
    < cfset aPrimaryContactNumber =(#mydoc.NetworkOrder.PrimaryAddress.ContactNumber#) >
    < cfset aPrimaryContactNumber = tostring(#mydoc.NetworkOrder.PrimaryAddress.ContactNumber#) >
    < cfset aPrimaryContactAddressLine1 =(#mydoc.NetworkOrder.PrimaryAddress.line1#) >
    < cfset aPrimaryContactAddressLine2 =(#mydoc.NetworkOrder.PrimaryAddress.line2#) >
    < cfset aPrimaryContactAddressLine3 =(#mydoc.NetworkOrder.PrimaryAddress.line3#) >
    < cfset aPrimaryContactAddressLine4 =(#mydoc.NetworkOrder.PrimaryAddress.line4#) >
    < cfset aPrimaryContactAddressLine5 =(#mydoc.NetworkOrder.PrimaryAddress.line5#) >
    < cfset aPrimaryContactCity =(#mydoc.NetworkOrder.PrimaryAddress.City#) >
    < cfset aPrimaryContactPostcode =(#mydoc.NetworkOrder.PrimaryAddress.PostalCode#) >
    < cfset aPrimaryContactCounty =(#mydoc.NetworkOrder.PrimaryAddress.CountrySubdivision#) >
    < cfset aPrimaryContactCountryCode =(#mydoc.NetworkOrder.PrimaryAddress.CountryCode#) >
    < cfset aPrimaryContactCountry =(#mydoc.NetworkOrder.SecondaryAddress.Country#) >
    < cfset aSecondaryContactName =(#mydoc.NetworkOrder.SecondaryAddress.ContactName#) >
    < cfset aSecondaryAttentionOfName =(#mydoc.NetworkOrder.SecondaryAddress.AttentionOfName#) >
    < cfset aSecondaryContactNumber =(#mydoc.NetworkOrder.SecondaryAddress.ContactNumber#) >
    < cfset aSecondaryContactAddressLine1 =(#mydoc.NetworkOrder.SecondaryAddress.line1#) >
    < cfset aSecondaryContactAddressLine2 =(#mydoc.NetworkOrder.SecondaryAddress.line2#) >
    < cfset aSecondaryContactAddressLine3 =(#mydoc.NetworkOrder.SecondaryAddress.line3#) >
    < cfset aSecondaryContactAddressLine4 =(#mydoc.NetworkOrder.SecondaryAddress.line4#) >
    < cfset aSecondaryContactAddressLine5 =(#mydoc.NetworkOrder.SecondaryAddress.line5#) >
    < cfset aSecondaryContactCity =(#mydoc.NetworkOrder.SecondaryAddress.City#) >
    < cfset aSecondaryContactPostcode =(#mydoc.NetworkOrder.SecondaryAddress.PostalCode#) >
    < cfset aSecondaryContactCounty =(#mydoc.NetworkOrder.SecondaryAddress.CountrySubdivision#) >
    < cfset aSecondaryContactCountryCode =(#mydoc.NetworkOrder.SecondaryAddress.CountryCode#) >
    < cfset aSecondaryContactCountry =(#mydoc.NetworkOrder.SecondaryAddress.Country#) >

    Since you already have the XML parsed in a document, the easiest is to use xmlSearch(). Take a look at the doc, it is pretty easy to use. Something as simple as:

    To the most complex as:

    And in both cases:

    Read the doc and google is your friend "coldfusion xmlsearch.

  • Adding feeds to "feeds.xml".

    Hello everyone, I am currently in programming as a hobby. I love the Blackberry OS 10 and I'm interested in coding for the platform.

    I use the waterfalls (QML and C++), and I'm doing a podcast, as BPod and PodcastAddicts (Android) downloader. I designed the user interface of the application, but I'm running a certain problems and I hope that people don't mind help out me.

    So first of all: I have a screen that has the controls to be added to the library. I'm storing flows in an xml file called "feeds.xml", but I'm stuck on how to write to the file. So, I want to when the button is clicked, then it gets added to the "feeds.xml" file and library updates showing the newly added podcast stream.

    Currently I have this code:

    import bb.cascades 1.0
    
    NavigationPane{
    Page {
        id: myPage
        Container {
    
            topPadding: 10
            background: Color.Black
            Container {
                id: addFeedContainer
                layout: StackLayout {
                    orientation: LayoutOrientation.LeftToRight
    
                }
                TextField {
                    id: feedUrl
                    hintText: qsTr("Add feed url") + Retranslate.onLanguageChanged
                    inputMode: TextFieldInputMode.Url
                    clearButtonVisible: true
                    layoutProperties: StackLayoutProperties {
                        spaceQuota: 1
                    }
                    input {
                        submitKeyFocusBehavior: SubmitKeyFocusBehavior.Lose
                        submitKey: SubmitKey.Submit
                        onSubmitted: {
                            addFeedContainer.addFeed();
    
                        }
                    }
    
                }
                Button {
                    text: qsTr("Add") + Retranslate.onLanguageChanged
                    preferredWidth: feedUrl.focused ? 20 : undefined
                    onClicked: {
                        addFeedContainer.addFeed(feedUrl.text);
                    }
                }
                function addFeed() {
    
                    // Reset the TextField to its original state
                    feedUrl.loseFocus()
                    feedUrl.text = ""
                }
            }
            ListView {
                topMargin: 50
                dataModel: XmlDataModel {
                    id: rss
                    source: "feeds.xml"
                }
    
                listItemComponents: [
                    ListItemComponent {
                        type: "item"
    
                        SettingsListItem {
    
                        }
                    }
                ]
    
            }
        }
    }
    }
    

    Thanks in advance

    XMLDataAccess but there are limits on the XML, you can write on, so if you decided to complicate later then you can consider using QXmlStreamWriter now.

    However, I use them both in my application and so there is nothing that prevents using XMLDataAccess now and then glancing QXmlStreamWriter when you need more complexity.

  • IMAQdx attributes listed in the xml file not found in labview

    Hello

    Some attributes of my camera our watch camera (DALSA CamExpert) software but are not displayed in MAX.

    When I opened the xml file, I don't see a difference between the attributes shown and hidden.

    Why LabView displays all possible attributes?

    The sml file has specific requirements?

    Any ideas?

    Hello Eric,

    I solved the problem yesterday!

    I use a DALSA camera. Dalsa software downloads the XML file and saves it in a directory 'dalsa"on my local disk.

    National instruments software (MAX) downloaded XML file and saves it in another directory. The 2 files were not equal. I replaced the XML file OR the XML of Dalsa file and now I'm able to get all attributes.

    But thanks for your response!

    Kind regards

    Kim

  • Simulator Device.xml file has a tag with an attribute of memory, what are the optional values for this attribute of the os?

    In the Device.xml file, it starts with the tags of the os. Each os has a memory attribute. What are the optional values for the attribute memory?

    Can we really control the memory for the simulators?

    0x85000F03
    0x8C000F03
    0x87000F03
    0x84001503
    0x86001503
    0x04001507
    0x0F001507
    0x0C001404
    0x0D001404
    0x0E001404
    0x0D000D04
    0x16000D04
    0x05001504
    0x07001504
    

    These values refer to specific hardware configurations are simulated.  They should not be changed.

  • Generate the XML file with elements and attributes in table Oracle

    Hello

    I have the following table structure.

    CREATE TABLE SPOOL
    (
    COIL_ID NUMBER (10),
    COIL_NUMBER VARCHAR2 (40),
    COIL_PO_OPERATING_UNIT VARCHAR2 (20).
    COIL_PO_NUMBER VARCHAR2 (40),
    MILL_NUMBER VARCHAR2 (2),
    MILL_COIL_STATUS VARCHAR2 (15).
    ITEM_NUMBER VARCHAR2 (40),
    COIL_WEIGHT NUMBER (38),
    WEIGHT_UOM VARCHAR2 (10),
    DOCUMENT_NUMBER VARCHAR2 (40),
    DATE OF DOCUMENT_DATE,
    DOCUMENT_STATUS VARCHAR2 (15).
    DOCUMENT_TYPE VARCHAR2 (20).
    DOCUMENT_SOURCE VARCHAR2 (20).
    TEST_ID NUMBER (38),
    NUMBER VALUE,
    TEST_UOM VARCHAR2 (20).
    TEST_STATUS VARCHAR2 (70).
    TESTER_LOGIN VARCHAR2 (20).
    EQUIPMENT_CODE VARCHAR2 (50).
    DOC_STS_MSG VARCHAR2 (600)
    )
    /
    For each record COILID, there could be several folders baased on TEST_ID/VALUE/TEST_UOM etc.

    And I would like to prepare the xml file in the following format by selecting data in the COIL?


    <? XML version = "1.0"? >
    -coil xsi: noNamespaceSchemaLocation = "www.tempel.com/COIL.xsd" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:xdb = "http://xmlns.oracle.com/xdb" >
    < CoilId > 1419532 < / CoilId >
    < CoilNo > D2221050010A0 < / CoilNo >
    Changzhou < CoilPOOperatingUnit > < / CoilPOOperatingUnit >
    < CoilPONo > 4619 < / CoilPONo >
    < MillNo > 86 < / MillNo >
    Test of < MillCoilStatus > < / MillCoilStatus >
    C5 050FP800 < ItemNo > < / ItemNo >
    < weight > 7076 < / weight >
    KILOGRAM of < GLU > < / UDM >
    < DocumentNo > 0 < / DocumentNo >
    < DocumentDate > 2013 - 01 - 11 < / DocumentDate >
    < DocumentStatus > not < / DocumentStatus >
    < DocumentType > test < / DocumentType >
    CHIGMA1 < DocumentSource > < / DocumentSource >
    < DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.4992" TestUnit = "mm" Status = 'NonProcessed' TestId = "135" / >
    < test DocStsMsg = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.0128" TestUnit = "mm" Status = 'NonProcessed' TestId = "124" / >
    < DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "12" TestUnit = "mm" Status = 'NonProcessed' TestId = "125" / >
    < DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.5095" TestUnit = "mm" Status = 'NonProcessed' TestId = "127" / >
    < DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.5042" TestUnit = "mm" Status = 'NonProcessed' TestId = "128" / >
    < DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.5058" TestUnit = "mm" Status = 'NonProcessed' TestId = "129" / >
    < DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.4967" TestUnit = "mm" Status = 'NonProcessed' TestId = "130" / >
    < DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.5049" TestUnit = "mm" Status = 'NonProcessed' TestId = "131" / >
    < DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.4972" TestUnit = "mm" Status = 'NonProcessed' TestId = "132" / >
    < DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.4960" TestUnit = "mm" Status = 'NonProcessed' TestId = "133" / >
    < DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.4996" TestUnit = "mm" Status = 'NonProcessed' TestId = "134" / >
    < / reel >

    Can you please guide me how to do it in a single query?

    Thanks in advance.

    Function EXTRACT will force a print in your version:

    SELECT XMLElement("Coil",
             XMLAttributes(
               'http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi"
             , 'www.tempel.com/COIL.xsd' as "xsi:noNamespaceSchemaLocation"
             )
           , XMLForest(
               COIL_ID                as "CoilId"
             , COIL_NUMBER            as "CoilNo"
             , COIL_PO_OPERATING_UNIT as "CoilPOOperatingUnit"
             , COIL_PO_NUMBER         as "CoilPONo"
             , MILL_NUMBER            as "MillNo"
             , MILL_COIL_STATUS       as "MillCoilStatus"
             , ITEM_NUMBER            as "ItemNo"
             , COIL_WEIGHT            as "Weight"
             , WEIGHT_UOM             as "UOM"
             , DOCUMENT_NUMBER        as "DocumentNo"
             , DOCUMENT_DATE          as "DocumentDate"
             , DOCUMENT_STATUS        as "DocumentStatus"
             , DOCUMENT_TYPE          as "DocumentType"
             , DOCUMENT_SOURCE        as "DocumentSource"
             )
           , XMLAgg(
               XMLElement("Tests",
                 XMLAttributes(
                   DOC_STS_MSG    as "DocStsMsg"
                 , EQUIPMENT_CODE as "EquipmentCode"
                 , TESTER_LOGIN   as "TesterLogin"
                 , VALUE          as "Value"
                 , TEST_UOM       as "TestUnit"
                 , TEST_STATUS    as "Status"
                 , TEST_ID        as "TestId"
                 )
               )
             )
           ).extract('/*')
    FROM coil
    GROUP BY COIL_ID
           , COIL_NUMBER
           , COIL_PO_OPERATING_UNIT
           , COIL_PO_NUMBER
           , MILL_NUMBER
           , MILL_COIL_STATUS
           , ITEM_NUMBER
           , COIL_WEIGHT
           , WEIGHT_UOM
           , DOCUMENT_NUMBER
           , DOCUMENT_DATE
           , DOCUMENT_STATUS
           , DOCUMENT_TYPE
           , DOCUMENT_SOURCE ;
    
  • How to create the existing XML file bar chart

    Hi all

    I'm new to flex, I need your help to develop a flex during approx. dashboard we file sample.xml. using what I have to create a bar chart or a pie chart.

    Please help me

    The XML looks like this...

    <? XML version = "1.0" encoding = "utf-8"? >
    < user name = "123412343" >
    < name >
    < name > these < / lastName >
    Vijay < firstName > < / name >
    < / fullName >
    < Preferences >
    < modWidth > 235 < / modWidth >
    < modHeight > 250 < / modHeight >
    < > 1650 totalWidth < / totalWidth >
    < > 1650 totalHeight < / totalHeight >
    < modsX > 4 < / modsX >
    < modsY > 2 < / modsY >
    < / Preferences >
    < id module = "Status2" >
    < fenetreouvrir > true < / fenetreouvrir >
    < pointsToShow >
    < label p = 'Proposals' / >
    < label p = "Project" / >
    < label p = "DEP Ptba" / >
    < label p = "EPA Ptba" / >
    < / pointsToShow >
    < dataSetsToShow >
    < label > 2006 < / label >
    < label > 2007 < / label >
    < / dataSetsToShow >
    < / module >
    < / user >

    convert this ArrayCollection collection called chartData xml file

    var charOption:String = 'totalHeight '; / Use this to set the yField property...



    <>
    dataProvider = "{chartData}.
    categoryField = "time" / >






  • Is it possible to search for key words in an XML file?

    Hey all,.

    I am currently looking for ways to count the number of keywords in an XML file. An example would be trying to find how many times 'war' is mentioned in a network of new RSS feed < title > < / title > and adding it to a variable.

    I found a few AS3 XML class custom there files but nothing that I was able to adapt. I'm to the point just taking the title of these stories convert all channels and their research in this way...

    I would be grateful for any help

    Thank you!

    Just to clarify the JCSurf

    In your example, you're checking whether the XML element has an attribute "NAMED" keywords.

    If you try to determine the number of times keyword 'war' appears in a specific XML newsfeed, I guess that XML elements already have an attribute named "Key words" and you check in to this existing attribute and then check if the word ' war exist in the keywords attribute, and then finally to count the number of times where that is. "

    ============

    function negativeKeyword(keywords:String)

    {

    for (var i: Number = 0; i< 29;="">

    {

    If (myXML.channel.item.title [i] .attribute == keywords) / / this is only check verifies if an attribute exists that is called keywords

    {

    -negativeNumber;

    }

    }

    }

    ============

    It should check to see if the keyword attribute is an element tag and if it contains the word 'war '.

    If (myXML.channel.item.title [i] .attribute ("keywords") is 'war')

    I also believe you need to do your quoted strings.

    Keep me posted.

  • problem write/read an xml file

    Hello world

    IM using ksoap library to access my webservice, if everything is ok, my webservice returns an xml file, then I use this file to show some information in my application.

    In the Simulator, everything works perfectly (BB simulator_5.0.0.411_8900), but in a real BB does not work, the app show me a NullPointerException.

    Anyone has an idea about this?

    public void CargaDatosIniciales(){
    
        String result="";
    
        String serviceUrl = "http://myserver.com/blackberry/soap.php";
        String serviceNamespace ="http://myserver.com/blackberry/soap.php";
        String soapAction = "http://myserver.com/blackberry/soap.php?wsdl";
    
        rpc = new SoapObject(serviceNamespace,"cargarVideos");
        rpc.addProperty("Login", usr);
        rpc.addProperty("Password", password);
        rpc.addProperty("user_agent", userAgent);
    
        try{
            SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
            envelope.bodyOut = rpc;
            envelope.dotNet = false;
            envelope.encodingStyle = SoapSerializationEnvelope.XSD;
    
            HttpTransport ht = new HttpTransport(serviceUrl);
            ht.debug = true;
            ht.call(soapAction, envelope);
            result = (envelope.getResult()).toString();
            writeXML(result,1);
    
        }catch(Exception e){
    
        }
    
    }
    
    private void writeXML(String result,int f) {
    
        String URL = "file:///SDCard/BlackBerry/documents/";
        String filename="";
        if(f==1){
    
            filename = "datosXML.xml";
        }
    
    ....
        String fName=URL+filename;
        try {
             DataOutputStream os = null;
                FileConnection fconn = null;
                try {
                        fconn = (FileConnection) Connector.open(fName, Connector.READ_WRITE);
                        if (!fconn.exists()){
                            fconn.create();
                        }
                            fconn.delete();
                            fconn.create();
    
                        os = fconn.openDataOutputStream();
                        os.write(result.getBytes());
                } catch (IOException e) {
                        System.out.println(e.getMessage());
                } finally {
                        try {
    
                            if (null != os)
                                        os.close();
                                if (null != fconn)
                                        fconn.close();
                        } catch (IOException e) {
                                System.out.println(e.getMessage());
                        }
                }
    
        } catch ( Exception e ) {
    
        }      
    
    }
    

    PD: Sorry for my English.

    In most cases, 'deviceside = true' does not work unless it is accompanied by specific carrier APN info.

    The AFN must be defined in the parameters of TCP devcie or added to your URL.

    See the following article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

    .. and this one:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To _...

  • LSX-00204 error when validating an XML file on a registered scheme

    Hello

    When I want to validate an XML file against the registered scheme I get the following error:

    ORA-31154: Ungultiges XML-Dokument ORA-19202: Fehler bei XML-Verarbeitung LSX-00204: additional data am Ende von komplexem aufgetreten element

    Here is the schema snippet:

    <! - the address of a given party in fixed or free form possibly the two forms - >

    < xsd: complexType name = 'Subscription_type' xdb:SQLType = "ITX_FTC_ADDRESS_TYPE_O" xdb:maintainDOM = "false" >

    < xsd: annotation >

    < xsd: documentation XML: lang = "fr" >

    The user has the possibility to enter the data concerning the address of a party, either in a single long field or to distribute data on items up to eight or even to use both formats. If the user chooses the option to enter the necessary data in separate elements, the container for this item will be "AddressFix". If the user chooses the option to enter the necessary data in a way less structured in "AddressFree" all the available coordinates must be submitted as a string of bytes, empty or ' / ' (slash) or trolley line break return used as a delimiter between the parts of the address. PLEASE NOTE that the country code address is outside these two elements. The use of the fixed form is recommended as a general rule, to allow an easy match. However, the use of the free form is recommended if the sending State can surely identify and distinguish the different parts of the address. The user wants to use both formats for example if in addition which separates the logical part of the address he also wants to show a decent breakdown in print-lines of delimiters in the form of free text. In this case, "AddressFix" must precede the 'AddressFree '.

    < / xsd: documentation >

    < / xsd: annotation >

    < xsd: SEQUENCE >

    < xsd: element name = "PostalCode" type = "iso: CountryCode_Type ' xdb:SQLName = 'COUNTRY_CODE' / >

    < xsd: Choice >

    < xsd: element name = "AddressFree" type = "xsd: String" xdb:SQLName = "ADDRESS_FREE" / >

    < xsd: SEQUENCE >

    < xsd: element name = "AddressFix" type = "sfa:AddressFix_Type" xdb:SQLName = "ADDRESS_FIX" / >

    < xsd: element name = "AddressFree" type = "xsd: String" minOccurs = "0" xdb:SQLName = "ADDRESS_FREE" / >

    < / xsd: SEQUENCE >

    < / xsd: Choice >

    < / xsd: SEQUENCE >

    < xsd: attribute name = "legalAddressType" type = "stf:OECDLegalAddressType_EnumType" use = "optional" / >

    < / xsd: complexType >

    The problem occurs only when the second choice (when: "AddressFix" and "AddressFree") was given in the XML file. When only the first choice ("AddressFree") gave then the validation against schema very well recorded works.

    I think that the problem is based on the generation of all objects in the database of dbms_xmlschema.registerSchema.

    BTW, how is possible to get a more meaningful error message because the error I get is very common, and I can't imagine in which the problem occurs.

    Thanks in advance.

    Best regards

    Martin

    I have reproduced the issue on 11.2.0.4 using the Schémas XML FATCA.

    declare
    
      l_schemas  sys.odcivarchar2list :=
                sys.odcivarchar2list('isofatcatypes_v1.0.xsd',
                                     'oecdtypes_v4.1.xsd',
                                     'stffatcatypes_v1.1.xsd',
                                     'FatcaXML_v1.1.xsd');
    begin
    
      for i in 1 .. l_schemas.count loop
    
        dbms_xmlschema.registerSchema(
          schemaURL       => l_schemas(i)
        , schemaDoc       => xmltype(bfilename('FATCA_DIR', l_schemas(i)), nls_charset_id('AL32UTF8'))
        , genTypes        => true
        , genTables       => false
        , enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE
        );
    
      end loop;
    
    end;
    /
    

    As in schema extract that you provided, I've annotated subscription_type complexType with xdb:maintainDOM = "false".

    Then tried to validate the example NilFIReport.xml file after adding an AddressFix element:

    JP

    String

    String

    SQL> declare
      2    doc  xmltype := xmltype(bfilename('FATCA_DIR', 'NilFIReport.xml'), nls_charset_id('AL32UTF8'));
      3  begin
      4    doc.schemaValidate();
      5  end;
      6  /
    declare
    *
    ERROR at line 1:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00204: extra data at end of complex element
    ORA-06512: at "SYS.XMLTYPE", line 354
    ORA-06512: at line 4
    

    Now, let's abandon patterns, remove the xdb:maintainDOM annotation (or set to true, the default) and re - register:

    SQL> declare
      2    doc  xmltype := xmltype(bfilename('FATCA_DIR', 'NilFIReport.xml'), nls_charset_id('AL32UTF8'));
      3  begin
      4    doc.schemaValidate();
      5  end;
      6  /
    
    PL/SQL procedure successfully completed.
    

    Works.

    Conclusion: set maintainDOM to false when using XS: Choice.

    There is probably a mess when the positional descriptor (attribute "$SYS_XDBPD") is missing in this case.

  • The analysis via an XML file

    Hello

    I work with an XML file that is generated through the API of Google Books.  I'll apologize in advance if I don't get quite accurate XML terminology - it's my first foray into some of the tags XML see  I'm reading a XML file in and attempt to send data:

    "< cfhttp url = 'http://www.google.com/books/feeds/volumes?q=john+grisham+the+firm & min-viewability biased =" method = "GET" > "

    < CFSET xmlfile = xmlparse (cfhttp.filecontent) >


    < cfset xmlsize = arraylen (xmlfile.feed.entry) >


    < cfloop from = "1" = "" #xmlsize # "index ="a">"

    < b > title: #xmlfile.feed.entry [a].title.xmlText # < /b > < br >
    < b > Format: #xmlfile.feed.entry [a].format.xmlText # < /b > < br >
    < b > author: #xmlfile.feed.entry [a].creator.xmlText # < /b > < br >
    < b > identifier1: #xmlfile.feed.entry [a].identifier.xmlText # < /b > < br >
    < b > identifier2: #xmlfile.feed.entry [a] .identify [2] .xmlText # < /b > < br >

    < / cfoutput >
    < / cfloop >

    It works pretty well.  Here's the problem: there is often a third identifier field (xmlfile.feed.entry [a] .identify [3] .xmlText)- but not always.

    I'm testing the existence of this field before you post.  I tried the following:

    < CFIF isdefined("xmlfile.feed.entry[a].identifier[3].xmlText") >
    is defined

    < CFELSE >

    is not defined
    < / cfif >

    Gives the typical error:

    Parameter 1 of function IsDefined, which is now xmlfile.feed.entry [a] .identify [3] .xmlText, must be a valid variable name syntactically.

    I would use structkeyExists, but I can't understand how the third node (?) using the reference code:

    < cfif structKeyExists(xmlfile.feed.entry[a],"identifier") > only works for xmlfile.feed.entry [a] .identify [1] .xmlText

    < cfif structKeyExists(xmlfile.feed.entry[a],"identifier[3]") > is not valid.

    So with strucktkeyexists, I can not understand how to properly reference the name of the variable...

    Any help?  Or the best ideas to verify the existence of this variable?

    The node you are looking at is an array, so:

    you need to do. At the present time, you test for the attribute 'xmltext' rather than to check its node parent exists.

    HTH.

  • 1 xml file, 2 drop-down lists

    I've recently set up a video player based on the form tutorial Lisa Larson-Kelley on the construction of a XML playlist, which I managed to get to work. I wanted to take this to the next step in the creation of a second listbok or buttons for categories where only the videos in the category would be displayed in the listbox or title list. I saw information about AS2 solutions, but not for AS3. I have the XML file not that I modified to include a category tag which I was able to analyze the category names in a listbox control, but I'm stuck on the sending of data from the category selected for a second ttilist. I use the following approach to target the second box:

    toplist.addEventListener (Event.CHANGE, itemChange);
    function itemChange(e:Event):void {}
    Blist = toplist.selectedItem.data;

    In the tests, by clicking on the toplist category returns the errror

    TypeError: Error #1034: Type coercion failed: cannot convert XML@43c0b081 CISCO (category name) attribute in fl.controls.TileList.

    If a thread for this exist, or you have some useful suggestions, please and thank you.

    I could be wrong, but anytime I have consulted a list or combo or tilelist I had to pull the out point and save it in a generic object before it would let me mess with data. I never got the selectedItem.data to work.

    Have you tried to do a smart object and then registering the selectedItem in there?

    var tObject:Object = new Object();
    tObject = toplist.selectedItem;

    tObject.data

  • XML file does not appear if it is a local file and XSLT file is on a server.

    If I have a local XML file with a XSLT file local XML file is displayed as expected. If the two files are on my server again that the XML file is displayed correctly. However if the XML file is local and the XSLT file is on the server (and the XML file points to the file on the server) I get the following error:

    Error loading stylesheet: an unknown error occurred (805303f4)

    Using Firefox on a Mac 41.0.1.

    This problem does not occur on Safari

    No idea where I'm wrong? Research on the web there are suggestions about changing the mime, but'm not 100% sure what to do about it. In

    Thank you

    Brian

    Guigs. Thanks for the information.

    After doing some digging, I found this page:

     http://enable-cors.org/server_apache.html
    

    Following these tips, I added an .htaccess file in the directory on the server that contains my .xslt file, which contains the line:

       Header set Access-Control-Allow-Origin "*"
    

    And that seems to have solved my problem for Firefox!

    Does not seem to solve the problem on Internet Explorer, but suspect it's a problem for another day (and maybe another forum).

  • Lack of files - Itunes added localhost prefix of music files

    I had all my music stored on my laptop Windows 10 at home and saved 2 portable drives separate (one in the other NTFS and ExFat format) to be doubly sure. I would like to use one of these return of records in conjunction with a smaller laptop Windows 10 to replicate the playlists on the phone at home, i.e. running the smallest pc directly from the external hard drive (shift + library ITunes/choice /.. .locate library on mobile drive.etc) until recently, it worked like a dream - no missing file on smaller pc that I would use if going to parties etc.

    My most wholesale laptop crashed and burned last week and needed to be restored to its original Windows 8 State (should have before the two laptops were improved Win8 to Win10). Both PCs have Itunes 12.4 but with slightly different screen setup - Win 10 'Bought' appears in the library at the top left with the music and the music video, Win8 it appears as a playlist also there is no drop down 'View As' top menu right Edit Playlist in Win *.

    Decide now run all my media from an external drive on the laptop over to the future I have attached, has chosen library and changed Itunes Media folder in Edit/Preferences/Advanced accordingly.  Now on a single disc 3000 + files have disappeared '!' and on the other drive 8000 +.  All tracks can be located in their original location on portable hard drives but when you use Get Info/file, the location of her missing track //localhost/G:/Music/iTunes/iTunes Media/Music/unknown artist/Unknown Album / Katy B - Katy B - I want to Be.mp3 as opposed to the G:\Music\iTunes\iTunes Media\Music\Elisa\Unknown Album\No Hero.mp3 found track as you can see it Itunes has not only added the //localhost/ prefix but also changed all of the / of their original.   NB this particular example was artist/album unknown etc, but the same applies with album/artist

    I tried to find some leads and allowing ITunes to use the automated 'use this location to find missing persons files' and he is never able to. ("Itunes is unable to locate the missing files 3000")  I slipped and fell from entire media folder in Itunes ("adding leader").  I tried to delete the file Itunes Library ITL and allowing Itunes to rebuild from the Itunes library by then XML import playlists from the XML file. I tried "fix the Itunes for Windows security permissions. I tried opening the library Itunes XML file in Notepad (text editor) - while I can find and replace the //localhost/ I can't replace all of / with-these appear in other channels (or can I?). Is there a script that can be run on Windows 8 or 10 to find the missing pieces and if so how or these scripts work only on Apple hardware?

    I kept back ups of previous before the accident and even libraries attempt to cast these on the smallest laptop Win 10 now present the same problem. Grateful for any help

    The "missing file" error occurs if the file is no longer where iTunes is expected to find. Causes possible is that you or a third-party tool has moved, renamed or deleted the file, one of its parent folders, or the reader, he feeds has been a change to the drive letter. It is also possible that iTunes has changed from waiting for the files in the presentation of pre-iTunes 9 post-iTunes 9 layout, or vice versa, and so looking for a bit in the wrong place. (In the case of a library moved from one system to the other there is also the potential permissions problems. (See the fix for iTunes for Windows security permissions if this could apply.)

    Select a track with an exclamation point, use Ctrl - I to get the information, and then click No when asked to try to locate the track. (Because of a bug in iTunes 12 you currently have to say no twice!) Look under the Summary tab for the location that iTunes thinks that the file should be. Now look around your hard drive. I hope you can locate the track in question. If a part of your library has just been moved, renamed a folder or a drive letter has changed, it should be possible to reverse actions. If the difference between the two railroads is an additional music directory in a path, then it is a problem of layout. I can explain more if this is the case.

    In some cases, iTunes may be able to repair itself if you go through the same steps with Get Info, but this time, click on search and browse the lost track. He peut then offers to try to automatically correct the other broken links. Although he said something like 'use the same location' expects to find the titles in the same provision of the artist / album that it generates, and not all in a big file.

    If another application like Windows Media Player has moved/renamed files then the chances are that subtle differences in naming strategies will make it difficult to restore media on the precise way that iTunes is expected. In this case, as long as the missing files somewhere, you should be able to use my FindTracks script for reconnecting to iTunes. See this post for an explanation of how it works.

    TT2

  • Last updated top 40 Pages causes "the index.xml file required is missing."

    I just upgraded to 4.1 Pages, and now I can't open my existing files.  "The required index.xml file is missing."

    See if this explanation by PeterBreis0807 helps you

    The required index.xml file is missing from the Pages how to solve

Maybe you are looking for

  • I want to resize the text in the Apple support pages WITHOUT changing the page size

    I spend a lot of time reading and learning on the Apple discussion forums, but all of a sudden my text size became too small. While I can easily adjust to the size of reading, which unfortunately also increases the size of the page and as a result I

  • How to restore my saved passwords?

    Just by mistake, I deleted all my saved passwords. In any case to restore. Using FireFox 34.0.5. Help, please

  • Manual of Tech's misdirection on Air iPad

    I downloaded a PDF technical manual on my iMac, and then I sent a copy to myself so that I can use on my iPad user manual. Downloaded ok, it has the wrong orientation. It shows also horizontal, and when I rotate the iPad continues to turn and can be

  • Type of memory for Touchsmart 420-1100t - DIMM or SODIMM?

    Hi, I keep getting conflicting information on the type of upgrade memory I need for my Touchsmart 420-1100 t. I know it's PC - 3 - 1066 DDR3, but for the life of me, I receive information contradictory re 204 PIN SODIMM or DIMM standard.  The system

  • I have Windows Vista Home Premium.

    Everytime I open Internet Explorer, I can't find 'File, Edit, View, Favorites, tools, help.' Please help me because I really need it?