Only one root tag is allowed.

I'm trying to run the following (from Flex 2.0 Online help) :
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:XML id="capitals" format="e4x">
<Capitals label="U.S. State Capitals">
<capital label="AL" value="Montgomery" />
<capital label="AK" value="Juneau"/>
<capital label="AR" value="Little Rock"/>
<capital label="AZ" value="Phoenix"/>
</Capitals>
<Capitals label="Canadian Province Capitals">
<capital label="AB" value="Edmonton" />
<capital label="BC" value="Victoria"/>
<capital label="MB" value="Winnipeg"/>
<capital label="NB" value="Fredericton"/>
</Capitals>
</mx:XML>
<!-- Create an XMLListCollection representing the Tree
nodes.
capitals.Capitals is an XMLList with both Capitals elements.
-->
<mx:XMLListCollection id="capitalColl"
source="{capitals.Capitals}" />
<!-- When you use an XML-based data provider with a tree
you must specify
the label field, even if it is "label".
The XML object includes the root, so you must set
showRoot="false".
Remember that the Tree will not, by default, reflect dynamic
changes
to the XML object. -->
<mx:Tree id="Tree1" dataProvider="{capitals}"
labelField="@label"
showRoot="false" width="300" />
<!-- The XMLListCollection does not include the XML root.
-->
<mx:Tree id="Tree2" dataProvider="{capitalColl}"
labelField="@label"
width="300" />
</mx:Application>
and I get
Only one root tag is allowed.
Any idea what has to change?
Thanks

Like it says, that is invalid xml. It looks like it is a bug
in the example doc.
Add a root node to the xml and you should be ok.
Tracy

Similar Messages

  • Only one Extractor source is allowed in a data flow ?

    Hi,
    We have a common scenario (I think this is common for SAP ECC in general) where we have 2 tables, *_ATTR (Attributes) and *_TEXT (descriptions).  We extract these using extractors.
    Initially when we tried to place 2 in a dataflow, we got an error saying 'Only one Extractor source is allowed in a data flow'.
    To work around this, we created 2 embedded dataflows and everything seems to work fine.  But when I do a validate all, I get the error:
    [Data Flow:DF_ODS_MD_WBS_ELEMENT]  Only one Extractor source is allowed in a data flow. (BODI-1116145)
    Should I be worried ?  My gut feeling is this is a bug in the validate all function, but I could be wrong.  Everything seems to run fine, so is it safe to ignore this ?
    This currently effects about 5 dataflows, but we have about 40 more to implement like this, so I don't want to get it wrong.
    Thanks,
    Leigh.

    Like it says, that is invalid xml. It looks like it is a bug
    in the example doc.
    Add a root node to the xml and you should be ok.
    Tracy

  • ERROR ITMS-9000: "META-INF/container.xml must contain one and only one root file reference."

    Hi all,
    After correcting a table-of-contents error in my .epub file, I am unable to upload it via iTunes Producer. It lists this error message:
    ERROR ITMS-9000: "META-INF/container.xml in 9780615431727.epub must contain one and only one root file reference." at Book (MZItmspBookPackage)
    The file has been verified and only has one root file reference in the container.xml file.
    Has anyone been able to find a solution to this problem?
    Thanks!

    Hello Forum Users…
    For those of you who have run into the upload roadblock, getting an error message similar to this:
    Package Summary:
    1 package(s) were not uploaded because they had problems:
              /Users/slm/Desktop/MUSIC to PICTURE for IBOOK/2012 MTP for iTUNES Bookstore/9780615600918.itmsp - Error Messages:
                        Apple's web service operation was not successful
                        Unable to authenticate the package: 9780615600918.itmsp
                        ERROR ITMS-9000: "OPS/ibooks.ncx(5): 'p50': fragment identifier is not defined in 'OPS/content9.xhtml'" at Book (MZItmspBookPackage)
    Following is a "specific" fix, but the idea of the fix will help you with your specifics too.
    I tried for 17 days to upload a book that looked and worked perfectly in iPAD via Preview.
    After many discussions with Apple, who to their credit stayed with me over 2-3 days, I decided to play a hunch.
    I went into a duplicated copy of the book and on every page, (because the error message was not telling the whole story), looked for what InDesign would call "Overset Text."
    Now... the "flaw" in iBOOK Author (hint) is that it won't advise you of this "overset text" as does InDesign.
    And to compound the matter, the exported ePUB document WORKS in iPAD Preview.
    See Screenshots from InDesign:
      Okay... Couldn't add it but it is a Warning Box that says there is overset text. (Characters which exceed the text box.)
    Nevertheless, I played this hunch, and sure enough found a few boxes with the + in them.  In other words I clicked on EVERY text holder and every text block in the entire document.
    Where I found + signs, I simply deleted some carriage returns from the iBOOK file... (please note… carriage returns and literally empty spaces that caused the overset text) and then erased all previous copies of the Music to Picture Book on my hard drive,  iTUNES and iPAD.
    The result?  A "text-book" upload with no snags!  As my Son would say… "Victory!"
    So, first make sure that you are using only PNGs, Jpegs and Movie files to iBook Specs.  Then... make sure there are no overset text boxes, which you must do manually.
    Enjoy & Godspeed!
    Steve
    Stephen Melillo, Composer
    STORMWORKS®
    209 Spinnaker Run
    Smithfield, VA 23430-5623
    USA
    v/f 757-356-1928
    stormworld.com
    “History is a vast early warning system.” Norman Cousins, editor and author (1915-1990)
    "This will be our reply to violence: to make music more intensely, more beautifully, more devotedly than ever before." Leonard Bernstein
    “If you have a chance to help someone, and you don’t, you are wasting your time on this earth.”  Roberto Clemente

  • Error Only one EhP release is allowed additionally

    Short Text    
    Error Only one EhP release is allowed additionally:    
    Long Text    
    Hi experts,
    I have installed EHP3 using transaction saint. Now when I try to upgradeto EHP4 , I am getting following error in MOPZ.
    Error Only one EhP release is allowed additionally:
    Information Make sure you have implememented note 1287216
    Information Select at least one of the technical usages additionally:
    Information *HCM - Learning Solution*
    Information *Learning Solution - ABAP only*
    But when I go back on previous screen
    learning solution is greyed out and red,
    HCM learning solution is also greyed out (not Red).
    Even if I choose EHP3, still both these components are greyed out.
    I have looked at note 1287216 and 1139602 but can't find what is missing.
    please advise how can I make these 2 components selectable .
    thanks,
    Daljit boparai

    Hi,
    To apply these components have you generated xml file ? If yes, then is xml file contains these patches ?
    Please check and revert back...
    Thanks
    Sunny

  • Only one EhP release is allowed aditionally:

    Hello Gurus,
    at mopz for our prod. system ERP 6.0 EHP3 we get always the error message
    Error Only one EhP release is allowed additionally:
    Information Make sure you have implememented note 1287216
    Information Select at least one of the technical usages additionally:
    Information **HCM - Learning Solution**
    Information **Learning Solution - ABAP only**
    if we want to do a stack collection for EHP4.
    Additionally we can not select the RED technical usage *Learning Solution - ABAP only* and the GREY technical usage *HCM - Learning Solution* .
    The checkboxes are greyed out.
    There are some solution?
    regards
    Ch. Fischer

    Hi
    If you will go in SMSY transaction then slect your sysrem and on right side you will get the screen where all usage types are defined for your system..
    there you need to select learning solution and HCM one and then you will be able to select it in MOPZ..
    Thanks
    Sunny

  • Only one Currency should be allowed..........

    Dear Experts,
    How can we make only single currency to be allowed to enter in the sales documents - sales orde / invoice ???
    Eg. If we want to create order only in INR and should not be created for any other currency  than INR, how we can achieve this??? Is it possible to make iin SAP standard?? Or do we have to go for any programming ??
    Thanks in advance
    Sagar

    Dont think, anything is available to achieve this in SAP standard. You can make the document currency field on the sales document non editable by doing code changes in USEREXIT_FIELD_MODIFICATION  in program MV45AFZZ . Thanks

  • Only one delivery to be allowed against one Sales order at item level

    Hi,
      I have a requirement  for some material in sales order if SO quanity is 25  we want that system should allow to create delivery of all 25 quanity one time  we try to use Max.Part.Deliv. at item level  by amking as 1  but system is juts giving the message and alowing to create multiple delivery,  can we map as per our requirement.
    regards,
    zafar

    Hello Zafar,
    your requirement of complete delivery required for some materials only, so it has to be taken care manually when user creates sale order, for those specific items complete delivery should be marked at item level (run availability check for the item and mark for complete delivery).
    If you want a permanent solution, please go for a development - define a table & maintain all the materials which are required to be delivered as complete delivery and then modify the sales order program, there is a specific include where the abaper can do this code change.
    Regards
    Suresh.

  • How many Sequence-Tags are allowed in one BPEL-File?

    Hello!
    I have read that only one Sequenze-Tag per BPEL-File is allowed. If I need more acticvities I should use scopes inside the Sequenze-Tag. Is this true? Actually I am working on a BPEL-File which contains two more Sequenze-Tags inside the all-embracing Sequenze-Tag. Is this legal?

    if you look into the bpel schema, which can be found here
    http://schemas.xmlsoap.org/ws/2003/03/business-process/
    and look at this here
    - <complexType name="tProcess">
    - <complexContent>
    - <extension base="bpws:tExtensibleElements">
    - <sequence>
    <element name="partnerLinks" type="bpws:tPartnerLinks" minOccurs="0" />
    <element name="partners" type="bpws:tPartners" minOccurs="0" />
    <element name="variables" type="bpws:tVariables" minOccurs="0" />
    <element name="correlationSets" type="bpws:tCorrelationSets" minOccurs="0" />
    <element name="faultHandlers" type="bpws:tFaultHandlers" minOccurs="0" />
    <element name="compensationHandler" type="bpws:tCompensationHandler" minOccurs="0" />
    <element name="eventHandlers" type="bpws:tEventHandlers" minOccurs="0" />
    <group ref="bpws:activity" />
    </sequence>
    it means max one activity .. and in a scope as shown here
    - <complexType name="tScope">
    - <complexContent>
    - <extension base="bpws:tActivity">
    - <sequence>
    <element name="variables" type="bpws:tVariables" minOccurs="0" /> <element name="correlationSets" type="bpws:tCorrelationSets" minOccurs="0" />
    <element name="faultHandlers" type="bpws:tFaultHandlers" minOccurs="0" />
    <element name="compensationHandler" type="bpws:tCompensationHandler" minOccurs="0" />
    <element name="eventHandlers" type="bpws:tEventHandlers" minOccurs="0" />
    <group ref="bpws:activity" />
    </sequence>
    <attribute name="variableAccessSerializable" type="bpws:tBoolean" default="no" />
    </extension>
    </complexContent>
    </complexType>
    the same .. in a sequence shown below
    - <complexType name="tSequence">
    - <complexContent>
    - <extension base="bpws:tActivity">
    - <sequence>
    <group ref="bpws:activity" maxOccurs="unbounded" />
    </sequence>
    </extension>
    </complexContent>
    </complexType>
    0 -> many
    Bottom line, one activity within a process, one activity per scope. n activities within a sequence
    htc clemens

  • Only one user at a time

    I'm looking for help.
    I have two user accounts on my iMac. Both have their own iTunes library file but these both reference to a shared store of music files (to avoid duplicates). I would now like to move this shared music to an external HDD attached to my TC.
    My problem is this. If user 1 first accesses the external HDD then when user 2 tries to do so there is a little red icon on the folder and permission is denied. If I disconnect all users from the TC and then retry with user 2 the problem is reversed. It seems to me that only one user account is allowed to access a TC external HDD at a time. Is there any way around this?
    In case anybody asks, my reason for moving the files is that I am hoping to buy a Sonos music system, which can read iTunes music from the TC as though it were an NAS, even if the computer is off.

    I think you're being misled a bit by the interface: the checkbox labelled "Strict locking" doesn't just allow strict locking, it requires it (and thus disallows byte-range locking). That is, with strict locking enabled, any client that tries to lock any part of the file actually locks the entire file. Access normally depends on byte-range locking to allow different clients to share the database (as long as they aren't trying to modify the same part of it at the same time), but with strict locking the first client locks all others out.

  • BADI "COPCMESSAGECONTROL" , only one active implementation ?

    Hi,
    I'd like to do a custom implementation of the BADI "COPCMESSAGECONTROL", eg
    "Z_COPCMESSAGECONTROL".
    For this BADI there's a SAP hint, that only one active implementation is allowed.
    Cause in our system there's already an active SAP implementation "/CWM/MESSAGE_CK" I don't know,
    if I can activate my custom "Z_COPCMESSAGECONTROL" implementation in addition to the SAP implementation.
    Any Ideas ? Many thanks in advance !
    Regards
    Olaf

    If you look at the BADI definition in SE18, you'll find that the 'multiple use' flag is NOT set meaning by default this BADI can only be implemented once.
    Therefore if you need to add custom coding to this BADI implementation either you add it to the implemented methods (modification) or you deactivate the standard BADI and implement your own BADI by copying the standard coding and adding yours to it (also a modification, but you would have your coding in a Z-class).
    However whenever you copy standard SAP code into a custom peogram or class any notes that SAP releases which makes changes to that BADI implementation will not be applied to your Z-copy!
    Hope that helps,
    Michael

  • HT4437 is there a way to connect my ipad with airplay to more than one airplay enabled speaker? at the moment it allows me to connect to only one?

    is there a way to connect my ipad using airplay to more than one airplay enabled speaker?  when i tap the airplay icon on my ipad i see the list of all the speakers in each room but i can only connect to one at a time. Itunes, on my laptop, allows me to connec to all of them at the same time but Music on my ipad allows me to choose only one speaker at a time. Can several be connected at the same time using Music on Ipad or iphone?

    That's great, but not what we want to do. I've been looking at all the boards for a solution to this and, you are correct. There isn't one - at least not one native to iOS. What I think EricB2 would like, as well as many of us, is the ability to take any audio stream (pandora, tune-in radio, etc.) and stream directly to multiple airplay devices from our iPads and iPhones without having to use the computer. Just walk into the house from the car, hit a button on the iDevice and start listening to the same stream we were listening to in the car on all of our home speakers. I know, this is like science fiction.  My own opinion is that it would cut into Apples lucrative iTunes business model and really isn't in their best interest, so I don't think it will be happening anytime soon. Bottom line is if you want to use your Apple devices for whole house streaming, you need a computer and music from iTunes($$). Otherwise it's $$ out of Apples pocket.

  • Is there a way to set firefox so it only allows access to only one website / (ip address).

    Is there a way to set firefox so it only allows access to only one website / (ip address) and block traffic from everything else (the entire web) other than the one site I want to allow? The site I want to allow is a corporate web application that will only work in firefox. We as a business run a windows server and all client desktops run Internet Explorer with security setting controlled by group policy. We have already locked down the security setting in firefox so users can’t bypass the proxy server settings.

    I have a proxy server set up (Symantec.cloud). Fire fox is “locked” so users would find it difficult to bypass it.
    I have a file: '''local-settings.js '''
    This is located in: C:\Program Files (x86)\Mozilla Firefox\defaults\pref
    The content of this file is:
    ''pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13
    pref("general.config.filename", "mozilla.cfg");''
    I also have the file: called: '''mozilla.cfg'''
    This is located: C:\Program Files (x86)\Mozilla Firefox
    The contents of this file is:
    lockPref("network.proxy.type", 5);
    All that is working fine, users can’t easily change the connection settings.
    So all that is good and works…
    What I would also like to do is set firefox so access is limited to 1 IP address and nothing else is allowed (the whole internet is blocked, except this one IP address).
    You suggest using a PAC file - I was unsure how I would use a PAC file, (I have never written one) and do not understand how I would implement one? Please help.

  • When defining copy rules, only one source field allowed

    Our users have requested the facility to allow them to copy pricing condition records when in in VK12 transaction. But when configuring the copy rules, we have come across the following problem:
    When configuring copying rules for copying pricing condition records,
    there is no possibility to use more than one source/target fields.
    In our example, the condition table created for a certain pricing
    access sequence contains keys such as Sales Organization, Sold-to Party
    "and" Product Hierarchies level 1 to level 9 (e.g. PH1 - PH9) .
    In the condition table definition, fields PH1 to PH9, although key
    fields, are also defined as footer fields. This means that per sales
    organization and sold-to party, we can create more than one condition
    record based on different combinations of PH1 to PH9.
    However when setting up copy rules for conditions in SPRO (SD -
    Pricing Control - Copy Control for Conditions) to allow our users to copy the condition records, for a given Source /
    Target table, the standard selection screen only allows us to define one Source / Target field.
    In our case, this is not helpful. The configurator should be allowed
    to select more than one source field (i.e. PH1 and PH2 and ..... PH9). At this moment,
    we can only select as source field PH1 or PH2 or PH3., etc..
    Steps for the Reconstruction:
    - Run Spro.
    - Select SD --> Pricing --> Pricing control --> Copy control for conditions -- > Copying rule for conditions
    - Select 'New Entries'. Selection screen is displayed. The issue is that in this selection screen, the configurator is allowed to select only one source field. He should be allowed to select multiple fields.
    Can you help us with this problem please?
    Your help is much appreciated!
    Edited by: C. Hassink on Feb 2, 2008 3:50 PM
    Edited by: C. Hassink on Feb 2, 2008 3:52 PM
    Edited by: C. Hassink on Feb 2, 2008 3:53 PM
    Edited by: C. Hassink on Feb 2, 2008 3:55 PM
    Edited by: C. Hassink on Feb 2, 2008 3:56 PM

    Hi Ralph,
    I don't like that methode. Importing the same transport 15 times, each time changing the source-system mapping and making sure, that source-system gets the changes seems to be a huge source of errors, which will be hard to find.
    What do you think of the following idea to solve the issue a totally different way:
    All transfer-rules directly connected to the source-systems are stripped of all Coding, so there is a plain 1 by 1 transformation including 0logsys.
    The InfoSources attached all lead to one ODS-Object, which has the only purpose to collect the data from the source-system without any transformation. So some fields a filled by a system and other fields maybe not.
    The coding specific for source-systems is moved to transfer- / update-rules from that ODS-Object to the original ODS-Objects / Cubes and the "collecting" ODS-Object is emptied after every loading process.
    This will result in a single point of change. It will be quite a huge program (maybe in startroutine) but it's the one and only point, where changes and corrections have to be made.
    Regards
    Robert

  • Only one top level element is allowed in an XML document. Line 2, Position 2

    I get this error when I try to run an xsql query with a where clause:
    Only one top level element is allowed in an XML document. Line 2, Position 2
    <font size='-1' face='monospace'>XSQL-005: XSQL page is not well-formed.</font><BR>
    -^
    Here is the xsql query I tried to use.
    <?xml version="1.0"?>
    <xsql:query connection="xmlbook" xmlns:xsql="urn:oracle-xsql">
    select * from companytable where companynumber < 1000;
    </xsql:query>
    null

    You need to escape certain characters in order to make XML documents well formed. The problem in this case is the less than sign between companynumber and 1000. You should replace it with <
    I recommend reading a good XML book - "Building Oracle XML Applications" by Steve Muench, for instance.
    Brian

  • Allowing only ONE instance of a PDF to be open

    I'm trying to work out a new system for proofreading and commenting in our business using the Comment and Markup tools in Acrobat 8 Professional. I'd like to allow multiple users on a network to interact and markup a PDF easily. I'd like to make it so that one of two things can happen:
    a) Only one instance of a PDF can be opened at once on the same network. That is to say, if a user on one computer opens a PDF, another user on the network on a different computer cannot open that same PDF at all, until the first user has closed it. Also, I'm not sure if the functionality for this would be implemented in Acrobat or the operating system (Mac OS X 10.6, to be precise).
    b) Multiple users can open a PDF simultaneously, and markups and comments from all users are somehow saved.
    I'm sure it's more of a possibility for a) to happen, but perhaps I'm wrong. Anyway, I hope there is a solution out there! Thanks for all your help!

    George,
    Thank you for your helpful reply. It does appear that Shared Reviews is capable of providing our business exactly what we need in this regard. I have found that Acrobat 8 does support Shared Reviews, but it only does so with Network Folder locations and WebDAV folders as locations for comment servers. I know how to get to the process to set up Shared Reviews, but not how to designate or set up a folder as a comment server using Network Folders or WebDAV. Unless you just so happen to know about that process as well, I will post a new thread, since the problem of finding a solution has been solved, but the new problem of implementing it has risen.
    Although using Acrobat X Pro to share PDFs and collaborate automatically using Acrobat.com sounds mighty tempting...

Maybe you are looking for

  • Extract data from a table

    Hi All, How to extract data from a table to a excel sheet. I want matnr and desc from MARA. Please help me. Thanks Veni

  • HTTPS configuration for SOAP adapter

    Hi, We have a requirement where we need to send the request to the target URL with https protocol. We have raised a request to configure the XI server for HTTPS. HTTPS has been configured on both ABAP stack and J2EE stack. But we could not find the H

  • Datapump Import remap_Schema does not works

    hi everybody, i've a problem with the import under 10.2.0.3.0 on AIX. I got an dump-file containing a full-databasedump. I just want to import one schema. Under imp i used the fromuser, touser clause. Now i tried it with the following parameters: imp

  • Drag and Drop objects in web app

    Hi all, I have a web application in which i have an option to delete the listed items. now i have to place an image of recycle bin on the webpage and to give the utility of delete operation by only dragging the object from list and droping it into re

  • Admin server not sending bootstrap servlet configuration to managed servers

    I am having a bit of strange issue. I have weblogic 8.1 SP5 domain in PROD. 14 managed servers in the domain When i start the managed serverA, sometimes it starts, sometimes it doesnt. By looking at admin server logs, i found the following. When the