Problem with XMLSerialize / indented XML

My problem is that my XML output is only a line like:
<? XML version = "1.0" encoding = "ISO-8859-15? > < rss version = "2.0" > < channel > < title > Test < / title > < / channel > < / rss >

IAM want to export xml like this:
<? XML version = "1.0" encoding = "ISO-8859-15? >
< rss version = "2.0" >
.. < String >
... < title > Test < /title >
.. < / channel >
< / rss >


I heard from xmlserialize that should be used like this:
Select xmlserialize (DOCUMENT xmltype (' <? xml version = "1.0" encoding = "ISO-8859-15"? > < rss version = "2.0" > < channel > < title > Test < /titre > < / channel > < / rss > ')) twice;

but its no change in my outings.
Can someone help me?

Published by: Oliver L the 07.11.2008 14:15

You are interested in the concept called "pretty printing".
http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14259/xdb04cre.htm#sthref469

If you're on 11, you can use one of the examples posted by mdrake to Re: generation of XML using XMLGEN

The concept of printing enough has been discussed in this forum before and I think that the SQL and PL/SQL forum as well.

select xmltype('Test').extract('*')
 from dual

The question to ask is "do you really need to? Compliant systems do not care if the XML of entry is a string unique or nice print.

Tags: Oracle Development

Similar Questions

  • I have a problem with my indenting, there all of a sudden everything including the headers and about 2.5 inches in withdrawal. I have

    I have a problem with my indenting, there all of a sudden everything including the headers and about 2.5 inches in withdrawal.

    Looks like your BMP format is defined to respect the heads side.  Open the designer of TFP and try to put it like that...

    I have no idea why the script would have changed your BMP formats.  Depends entirely how the script was executed - the authore makes the script actually do.

    I suspect that you can import formats of a document where you have NOT run the script, and it would return to the formatting to the way you want.  I hope you save your work!

  • Problem with dynamic arrays, XML and JavaScript patterns

    With the applied XML schema my JavaScript does not correctly work when it is added a 2nd row at my dynamic table. Instead of an added empty line 1st row data is copied on the 2nd line and if you change the data in the 2nd row it modifies data in the 1st row also. It works fine if the XML schema data connection is well removed.

    No idea what I can do to get this working with the schema that is applied in the same way, it works without the schema?

    Thanks for your help,

    Brian

    There you go. Its not a problem.

  • Problems with db/task.xml

    Hello

    When saving a custom scheduled task, I used weblogic utility to import and export the task.xml at MDS file.
    At first, I exported the file/db/task.xml task.xml, up-to-date with my tasks details custom set. And then imported it back to MDS by using the weblogicImportMetadata utility.
    Updated the weblogic.properties file to change the to and from places too.

    The import was successful. To check the file, I exported the file again and found that the file was in the State it had before the update.
    Also, when I checked in MDS_PATHS there are several copies of/db/task.xml.

    What I'm missing here? How can I make sure that the file is properly updated.

    Thank you
    Stone

    Published by: stone on November 23, 2012 10:02

    1. how the task.xml file is related to plugin.zip

    Scheculded task xml a tag called "oracle.iam.scheduler.TestScheduler" that defines the java class name. Now, plugin.xml also have the tag ' that define the java class is how the task.xml file to locate class java via plugin.zip.

    2. If we create files with different names, how IOM identifies what file * task.xml refer?

    IOM identify automatically. Only thing to consider is that the name of the file must be the same as the name of the scheduled task, with the extension .xml. You must import the scheduled task in the Oracle Identity Manager MDS/DB schema namespace.

    So, always create a custom file to a custom scheduled task. It will be easy to maintain & manage.

    For detailed steps, find the links above

  • HOW TO SOLVE MY PROBLEM WITH MICROSOFT OPEN XML CONVERTER. WHEN AN E-MAIL CANO'T OPEN THE ATTACHMENTE

    Every time to enter an e-mail address, when have an attachmente I have intention to open but bring a dialog box telling me: 'Microsoft Open XML Converter.  Click here to open bring another dialog box telling me: "Save."  In the final, a small dialog box tell me: not recorded in any file. What should I do?

    Hi MarioVidal

     

    1. what email program are you using? What is windows live mail, Hotmail, Gmail, etc.?

    2. meet the issue only with some specific files types with come as attachments or with each of them?

    3. during how long have you had this problem?
    4. the problem occurs for all e-mail programs?


    Let us know the answers to help you best.

  • problem with the app.xml

    Hi, I'm having headaches with the air sdk.

    I'm the "porting" an air for Microsoft device emulator application.  The app.xml has a node of , but if I try to deploy, I get the following error:

    Error: Cannot find node: versionNumber
    

    When I remove the node and replace it with I get the following error:

    Launching error: Packaging failed: 1
    ...app.xml(28): error 103: application.versionNumber is an unexpected element/attribute
    ...app.xml(139): error 104: application.version is required
    ERROR: AIR validation failed
    

    When I have two and I get the following error after logging in to the debugger out (perhaps unrelated)

    Packaging failed: 1
    ...app.xml(28): error 103: application.versionNumber is an unexpected element/attribute
    Error: AIR validation failed
    

    AIR 2.5 removing support for the field and replaced with two fields. et .

    versionNumber is the one required by the BB SDK. It has a few limitations - numbers between 0 and 999 only, and you must have 3 sections (that is to say 1.0.0 - or - 0.5.957). -Change to and make sure your version number is within the limits, and you shouldn't have the problem more.

    The error messages are confusing and make believe that the version label is always supported by 2.5, even if it is not.

  • Problem with loading of XML document

    Hello
    I have to load XML document uploaded on the web in XML DB and validate against the schema. The problem is, that:
    schemaLocation still looks like in the document like this:

    P1:schemaLocation = "SPDS. IFR.i009.pl http://inetsqlcg:82/ReportServer?%2fReportPublisher%2fspds.ifr.009.PL & amp; rs 3aFormat % = XML & amp; rc % 3aSchema = True'

    and cannot be changed.

    I registered schema by using the command:
    BEGIN
    DBMS_XMLSCHEMA.registerSchema
    (
    SCHEMAURL = >
    -UTL_URL. UNESCAPE
    ('http://inetsqlcg:82/ReportServer?%2fReportPublisher%2fspds.ifr.009.PL & amp; rs 3aFormat % = XML & amp; % 3aSchema rc = True'),
    SCHEMADOC = > BFILENAME ("TEST_DIR',"test.xsd").
    FORCE = > TRUE
    );
    END;

    (ORACLE inquired about the variable & amp, I set myself to & amp course :)))

    I used the FORCE to omit the error:
    ORA-31000: resource ' http://inetsqlcg:82/ReportServer?/ReportPublisher/spds.ifr.009.PL & amp; RS: Format = XML & amp; RC:schema = True' is not a document of schema XDB

    Now I have the schema with SCHEMA_URL
    Select SCHEMA_URL in the user_xml_schemas;
    http://inetsqlcg:82/ReportServer?%2fReportPublisher%2fspds.IFR.009.pl & amp; RS % 3aFormat = XML & amp; RC % 3aSchema = true

    but when I try to load the document like this
    INSERT INTO THE REP
    VALUES
    (
    XMLType
    (
    BFILENAME ("TEST_DIR", "test.xml"),
    NLS_CHARSET_ID ("AL32UTF8")
    )
    );

    There is an error:
    ORA-19007: Schema - does not http://inetsqlcg:82/ReportServer?%2fReportPublisher%2fspds.ifr.009.PL & amp; rs 3aFormat % = XML & amp; % 3aSchema rc = True expected.


    test.xsd is:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < xmlns = "spds.ifr.009.PL schema" xmlns: XS = "http://www.w3.org/2001/XMLSchema" xmlns:xdb = "http://xmlns.oracle.com/xdb" targetNamespace = "spds.ifr.009.PL" > "
    < xs: element name = "Report" xdb:defaultTable = "REP" >
    < xs: annotation >
    < intention > report < / intention >
    < / xs: annotation >
    < complexType xdb:SQLType = "REP_T" >
    < xs: Sequence minOccurs = "0" maxOccurs = "unbounded" >
    < xs: ELEMENT ref = "Detail" minOccurs = "0" maxOccurs = "unbounded" xdb:SQLName = "DETAILS" xdb:SQLCollType = "DETAILS_C" / >
    < / xs: SEQUENCE >
    < name XS: attribute = use 'REPORTNAME1' 'optional' = >
    < xs: annotation >
    XYZ abc < intention > < / intention >
    < / xs: annotation >
    < xs:simpleType >
    < xs:restriction base = "XS: String" / >
    < / xs:simpleType >
    < / xs: attribute >
    < / xs: complexType >
    < / xs: element >
    < xs: element name = "Details" xdb:defaultTable = "" >
    < xs: annotation >
    Details of < intention > < / intention >
    < / xs: annotation >
    < complexType xdb:SQLType = "DETAILS_T" >
    < name XS: attribute = "VALUATE" type = "xs: String" use = "optional" >
    < xs: annotation >
    < intention > Valuate < / intention >
    < / xs: annotation >
    < / xs: attribute >
    < name XS: attribute = "ISIN" use = "optional" >
    < xs: annotation >
    < intention > ISIN < / intention >
    < / xs: annotation >
    < xs:simpleType >
    < xs:restriction base = "XS: String" / >
    < / xs:simpleType >
    < / xs: attribute >
    < / xs: complexType >
    < / xs: element >
    < / xs: Schema >

    test.XML is:

    <? XML version = "1.0" encoding = "UTF-8"? >
    "< report xmlns:p1 ="http://www.w3.org/2001/XMLSchema-instance"xmlns ="spds.ifr.009.PL"p1:schemaLocation =" spds.ifr.009.PL http://inetsqlcg:82/ReportServer?%2fReportPublisher%2fspds.ifr.009.PL & amp; rs 3aFormat % = XML & amp; % 3aSchema rc = True "REPORTNAME1 ="abc abc abc">
    < detail ISIN = "AB0123456789" / >
    < detail ISIN = "XY0123456789" VALUE = "2" / >
    < / report >

    Version of the database is:
    11.1.0.7.0
    but probably I'll have to do the same thing on 10.2.0.3.0


    Any suggestion, please.

    And thanks in advance.

    Looks like we cannot manage this value of the schema location indicator... Not even sure we should, to be honest...

    You can use a workaround like this...

    SQL> VAR XMLSCHEMA CLOB
    SQL> VAR INSTANCE CLOB
    SQL> VAR SCHEMAURL VARCHAR2(700)
    SQL> --
    SQL> set define off
    SQL> --
    SQL> begin
      2     :SCHEMAURL := 'http://inetsqlcg:82/ReportServer?%2fReportPublisher%2fspds.ifr.009.PL&rs%3aFormat=XML&rc%3aSchema=True';
      3    :XMLSCHEMA :=
      4  '
      5  
      6     
      7             
      8                     Report
      9             
     10             
     11                     
     12                             
     13                     
     14                     
     15                             
     16                                     abc xyz
     17                             
     18                             
     19                                     
     20                             
     21                     
     22             
     23     
     24     
     25             
     26                     Details
     27             
     28             
     29                     
     30                             
     31                                     Valuate
     32                             
     33                     
     34                     
     35                             
     36                                     ISIN
     37                             
     38                             
     39                                     
     40                             
     41                     
     42             
     43     
     44  ';
     45    :INSTANCE :=
     46  '
     47  
     48  
     49  
     50  ';
     51  end;
     52  /
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.04
    SQL> --
    SQL> set define on
    SQL> --
    SQL> BEGIN
      2    DBMS_XMLSCHEMA.registerSchema
      3    (
      4       SCHEMAURL => :SCHEMAURL,
      5       SCHEMADOC => :XMLSCHEMA
      6    );
      7  END;
      8  /
    BEGIN
    *
    ERROR at line 1:
    ORA-31000: Resource
    'http://inetsqlcg:82/ReportServer?/ReportPublisher/spds.ifr.009.PL&rs:Format=XML
    &rc:Schema=True' is not an XDB schema document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 72
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 33
    ORA-06512: at line 2
    
    Elapsed: 00:00:00.04
    SQL> desc REP
    ERROR:
    ORA-04043: object REP does not exist
    
    SQL> --
    SQL> INSERT INTO REP VALUES ( XMLTYPE(:INSTANCE ))
      2  /
    INSERT INTO REP VALUES ( XMLTYPE(:INSTANCE ))
                *
    ERROR at line 1:
    ORA-00942: table or view does not exist
    
    Elapsed: 00:00:00.01
    SQL> --
    SQL> set define off
    SQL> --
    SQL> begin
      2     :SCHEMAURL := 'http://inetsqlcg:82/ReportServer';
      3    :XMLSCHEMA :=
      4  '
      5  
      6     
      7             
      8                     Report
      9             
     10             
     11                     
     12                             
     13                     
     14                     
     15                             
     16                                     abc xyz
     17                             
     18                             
     19                                     
     20                             
     21                     
     22             
     23     
     24     
     25             
     26                     Details
     27             
     28             
     29                     
     30                             
     31                                     Valuate
     32                             
     33                     
     34                     
     35                             
     36                                     ISIN
     37                             
     38                             
     39                                     
     40                             
     41                     
     42             
     43     
     44  ';
     45    :INSTANCE :=
     46  '
     47  
     48  
     49  
     50  ';
     51  end;
     52  /
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.01
    SQL> --
    SQL> set define on
    SQL> --
    SQL> BEGIN
      2    DBMS_XMLSCHEMA.registerSchema
      3    (
      4       SCHEMAURL => :SCHEMAURL,
      5       SCHEMADOC => :XMLSCHEMA
      6    );
      7  END;
      8  /
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:08.71
    SQL> desc REP
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
    TABLE of SYS.XMLTYPE(XMLSchema "http://inetsqlcg:82/ReportServer" Element "Report") STORAGE Object-relational TYPE "REP_T"
    
    SQL> --
    SQL> set long 10000
    SQL> select updateXML(XMLTYPE(:INSTANCE),'/Report/@p1:schemaLocation','spds.ifr.009.PL http://inetsqlcg:82/ReportServer','xmlns:p1="http://www.w3.org/2001/XMLSc
    hema-instance" xmlns="spds.ifr.009.PL"')
      2    from dual
      3  /
    
    UPDATEXML(XMLTYPE(:INSTANCE),'/REPORT/@P1:SCHEMALOCATION','SPDS.IFR.009.PLHTTP:/
    --------------------------------------------------------------------------------
    
    
      
      
    
    
    Elapsed: 00:00:00.03
    SQL> INSERT INTO REP VALUES ( updateXML(XMLTYPE(:INSTANCE),'/Report/@p1:schemaLocation','spds.ifr.009.PL http://inetsqlcg:82/ReportServer','xmlns:p1="http://www
    .w3.org/2001/XMLSchema-instance" xmlns="spds.ifr.009.PL"'))
      2  /
    
    1 row created.
    
    Elapsed: 00:00:00.01
    SQL> select * from REP
      2  /
    
    SYS_NC_ROWINFO$
    --------------------------------------------------------------------------------
    
    
      
      
    
    
    Elapsed: 00:00:00.56
    SQL>
    
  • problem with getting some xml UTF-8 characters

    Hello

    Please help me solve the following problem. I need to parse the XML string that contains the currency symbol (for example pound sign, see the code example). In the result of the variable currSign contains '? What's wrong?

    {} public static Sub test()

    try {}

    String data ="" +

    "0.00";

    ByteArrayInputStream is = new ByteArrayInputStream (data.getBytes ());

    DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();

    DocumentBuilder builder = factory.newDocumentBuilder ();

    Doc document = builder.parse (is);

    Root element = doc.getDocumentElement ();

    String currSign = root.getAttributes () .getNamedItem ("unit"). getNodeValue();

    }

    catch (Exception e) {}

    }

    }

    Ah. I think I see the problem. You want to convert the string into a byte array data using the version without getBytes() argument. Which uses the default encoding (which is ISO-8859-1). You must call getBytes ("UTF-8") or specify ISO-8859-1 for the xml declaration.

  • Problem with Android config.xml

    Hi all

    I work with a team, and we are more familiar with versions of iOS.

    We have created this file config.xml for the Android build, however, when we try to download and test it on devices, it crashes after opening.

    I guess the config.xml document can contain errors, the cause.

    You could review the config.xml for Android below and provide your thoughts or even a basic config.xml we could use?

    <? XML version = "1.0" encoding = "UTF-8"? >

    < widget xmlns = " " http://www.w3.org/ns/widgets "

    xmlns:gap = " " http://PhoneGap.com/ns/1.0 "

    xmlns:android = " " http://schemas.Android.com/APK/RES/Android " " "

    ID = "com.company.appname".

    versionCode = "20".

    version = "2.0.0" >

    < name > APPNAME < / name >

    < description > Description Here. < / description >

    " < author href = ' http://www.company.com "email =" [email protected] "> AuthorName < / author > " "

    < name of option = "phonegap-version" value = "cli - 6.3.0" / >

    < name of option = value "android-build-tool" = "gradle" / >

    < name of option = "orientation" value = "default" / >

    < name of option = "full screen" value = "false" / >

    < name of option = "target device" value = "combined" / >

    < name of option = "webviewbounce" value = "false" / >

    < name of option = "rentals-icon" value = "false" / >

    < = "stay webview" option name value = "false" / >

    < name of option = "detect types of data" value = "true" / >

    < = 'exit suspend' option name value = "false" / >

    < name of option = "show-splash-screen-spinner" value = "false" / >

    < = "auto hide splash screen" option name value = "false" / >

    < name of option = "FadeSplashScreen" value = "true" / >

    < name of option = "EnableViewportScale" value = "true" / >

    < name of option = "MediaPlaybackRequiresUserAction" value = "false" / >

    < name of option = "AllowInlineMediaPlayback" value = "true" / >

    < name of option = "BackupWebStorage" value = "none" / >

    < name of option = "TopActivityIndicator" value = "white" / >

    < name of option = "KeyboardDisplayRequiresUserAction" value = "false" / >

    < name of option = "KeyboardShrinksView" value = "true" / >

    < name of option = "HideKeyboardFormAccessoryBar" value = "false" / >

    < name of option = "SuppressesIncrementalRendering" value = "false" / >

    < = 'windows-identity-name' option name value = "" / > "

    < name of option = "android-minSdkVersion" value = "0" / >

    < name of option = "android-targetSdkVersion" value = "14" / >

    < name of option = "android-maxSdkVersion" value = "16" / >

    < = "android-installLocation' value = 'auto' option name / >

    < name of option = "SplashScreenDelay" value = "1000" / >

    < name of option = "ErrorUrl" value = "null" / >

    < name of option = "BackgroundColor" value = "0x000000" / >

    < name of option = "DisallowOverscroll" value = "true" / >

    < name of option = "LoadingDialog" value = "," / >

    < name of option = "LoadUrlTimeoutValue" value = "null" / >

    < name of the plugin = "cordova-plugin-inappbrowser" / >

    " < allow intention href = ' http://*/* " />

    " < allow intention href = ' https://*/* " />

    < allow intention href = "" Tel: * "/ >"

    < allow intention href = "" sms: * "/ >"

    < platform name = "android" >

    < / platform >

    < src = "icon.png icon" / > "

    <! - to PhoneGap android splash screens - >

    < platform name = "android" >

    < splash src = "androidl.png" density = "ldpi" / > "

    < splash src = "androidm.png" density = "mdpi" / > "

    < splash src = "anroidh.png" density = "hdpi" / > "

    < splash src = "androidx.png" density = "xhdpi" / > "

    < / platform >

    < / widget >

    Thank you very much for your help!

    1. replace this value = 15:

    2. change it to a value between 15 and 24:

    3. change it to a value > = 16 and > = targetSdkVersion

    4. This combination is foolish, as yu say: "do not automatically hide my splash, and after 1 second. :

    5. your white list rules do not work, because you are missing the plugin whitelist.

    Add

    6. you can add projections for xxhdpi and xxxhdpi.

    How your app "crash"? Do you get any error messages? External content is not loaded?

  • ColdFusion 10 problem with cfhttp postype xml

    We do a cfhttp call.

    We submit xml data. We are able to send information from Server A to Server B, but Server B gives us no answer.

    Our code works for coldfusion 8 and 9, but it does not work for coldfusionh 10.

    This is the snippet of code

    "< cfhttp method = 'post' url =" "#httpURL #" timeout = "3000" useragent = "#CGI.http_user_agent #" >

    < cfhttpparam type = "XML" value = "" #xmlRequest # "name ="CLRCMRC_XML">"

    < / cfhttp >

    The content of server B can be access by

    < cfdump var = '#cfhttp. FileContent #">."

    Note This works in coldfusion 8 and 9, but we get all the data from Server B using coldfusion 10

    Problem solved.

    It was to change this line

    to use the PROTOCOL = '1 '.

  • having a problem with parsing the XML file

    Hi all
    I am trying to get data from XML file
    I want to only 4-5 values in this XML file
    Here is an example of XML file
    -< transaction >
    -< TransCtx >
    > < pAMETranType > IRCVACAPPROVAL < / pAMETranType >
    > < / TransCtx >
    > < / transaction >

    I want to add value and to store this value in table
    I'm here, I want to "IRCVACAPPROVAL".
    the tag
    < pAMETranType >

    for this purpose


    I created a procedure

    CREATE OR REPLACE PROCEDURE insert_xml_emps (p_directory in varchar2,
    > p_filename in varchar2)
    (> vtableName in varchar2) as
    > v_filelocator BFILE.
    > v_cloblocator CLOB.
    > l_ctx DBMS_XMLSTORE. CTXTYPE;
    > l_rows NUMBER;
    > v_amount_to_load NUMBER;
    > dest_offset NUMBER: = 1;
    > offset NUMBER: = 1;
    > lang_context NUMBER: = DBMS_LOB. DEFAULT_LANG_CTX;
    > WARNING NUMBER;
    > START
    > dbms_lob.createtemporary (v_cloblocator, true);
    > v_filelocator: = bfilename (p_directory, p_filename);
    > dbms_lob.open (v_filelocator, dbms_lob.file_readonly);
    > v_amount_to_load: = DBMS_LOB.getlength (v_filelocator);
    >-* this line is changed * -.
    > DBMS_LOB. LOADCLOBFROMFILE (v_cloblocator,
    > v_filelocator.
    > v_amount_to_load.
    > dest_offset.
    > offset.
    > 0,
    > lang_context.
    (> warning);
    >
    > l_ctx: = DBMS_XMLSTORE.newContext (vTableName);
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSACTION');
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSCTX');
    >-clear the update settings
    > DBMS_XMLStore.clearUpdateColumnList (l_ctx);
    >-set the columns to update a list of values
    > DBMS_XMLStore.setUpdateColumn (l_ctx, 'PAMETRANTYPE');
    >
    >-now insert the doc.
    > l_rows: = DBMS_XMLSTORE.insertxml (l_ctx, v_cloblocator);
    > DBMS_XMLSTORE.closeContext (l_ctx);
    > dbms_output.put_line(l_rows ||) "... inserted rows. ») ;
    > dbms_lob.close (v_filelocator);
    > DBMS_LOB. FREETEMPORARY (v_cloblocator);
    > END;

    I also have on the table who get this value

    whenever I call that created the procedure
    it sometime gives an error or sometime run correctly but store null in the table


    But when I change the XML file
    as
    When convert all lowercase letters in the capital then it works fine

    Is tehre to other ways to parse the XML file with no change in the XML file?

    Did you use the same test (with the exception of file name and directory) case?

    What I posted is a copy/paste direct SQL * Plus, and it works on version 11.2.0.1.

  • problem with loading of XML

    For example, the following code is in a class - it's a setter function. I noticed the output of each trace statement... I don't know, but it does not seem to load the XML file. Obviously, if my tracing instructions don't work, my second class appeal will not (and does not) work.

    Maybe can you help?

    Try:

    var xnNode:XMLNode = this.firstChild;

  • ISDefined problems with berries from XML

    I use MX7 XMLParse then XMLSearch variable finf, operators of vol. tp unfortunately, not the operator provides a consistent XML Structures and if some fields are missing without any idea missing. If I try to use < cfif IsDefined to block the missing fields as below: -.

    < IsDefined ("Options_Array.XmlAttributes.UnitCost") cfif >

    I get the Error Message - 1 parameter of function IsDefined, which is now 'Options_Array.XmlAttributes.UnitCost', must be a valid variable name syntactically.

    How can I get around that?

    Thanks for any help.

    In this case, instead of IsDefined() you want to use StructKeyExists().

    Something like:
    CFIF StructKeyExists (Options_Array.XmlAttributes, "UnitPrice")

  • problem with the instanceconfig.xml configuration

    Hello
    I am trying to add a few additional options in my instanceconfig.xml file. But every time I have to add changes (as < ServerInstance > < AllowRememberPassword > n < / AllowRememberPassword >) and restart the service server OBI and OBI, service of presentation server presentation server service is does not start.
    And when I cancel the service changes presentation server will begin end.
    Please give me your point of view to address this issue.

    Thanks and greetings
    Suresh.

    Hello...

    Delete the tag and paste only...
    NO.

    This should paste before

    It works for me

    Mark as correct if it is correct ;)

    Good luck

    Thank you & best regards
    Kishore Guggilla

    Published by: Kishore Guggilla on October 22, 2008 12:54

  • Problem with the loading of XML and xmlns

    I'm having a problem with loading an XML file that was created by Filemaker.  FileMaker will display an XML file by using one of two different grammars.  A poster of a standard form for the most that I can use with a glitch.  Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.

    More precisely:

    " < FMPDSORESULT xmlns =" http://www.FileMaker.com/fmpdsoresult "> "

    ' If I remove the xmlns = " http://www.FileMaker.com/fmpdsoresult 'the file is loaded properly and I can access the different fields without problem.  However, when I go the xmlns =..., it will trace the XML properly but I can't access the fields by using the code below.  It drives me crazy!

    With part xmlns in the XML file, I get the following error when attempting to load the thumbnails files:

    TypeError: Error #1010: a term is undefined and has no properties.

    I need it so that the user can enter/change the data and simply output the XML file of Filemaker and then the Flash load the XML file not corrupted and displays the information requested by the user.  That is to say I might have the user open the XML file in a word processing application and have remove them the xmlns..., but it is rather heavy and not very user-friendly.

    I tried all the xml.ignore functions I could find, but it does not help.  I hope someone out there can help you

    Thank you

    -Brand-

    _____________________________________________________________________________________

    Partial XML:

    XML to export Filemaker:

    <? XML version = "1.0" encoding = "UTF-8"? >
    <! - this grammar has been deprecated - use the FMPXMLRESULT instead.
    " < FMPDSORESULT xmlns =" http://www.FileMaker.com/fmpdsoresult "> "
    < ERRORCODE > 0 < / ERRORCODE >
    Sport.FP7 < DATABASE > < / DATA >
    < LAYOUT > < / PAGE layout >
    < LINE MODID = '1' RECORDID = "1" >
    Brand of < FirstName > < / name >
    Fowle < name > < / LastName >
    Veil of < sport > < / Sport >
    Medal of <>no < / medal >
    Design of < CourseOfStudy > < / CourseOfStudy >
    < year > 1976-1978 < / year >
    California < HomeState > < / HomeState >
    < ImageName > 93 < / ImageName >
    < / ROW >

    ...

    < / FMPDSORESULT >

    __________________________________________________________________________________

    AS3 code:

    Import fl.containers.UILoader;
    var aPhoto: Array = new Array(ldPhoto_0,ldPhoto_1,ldPhoto_2,ldPhoto_3,ldPhoto_4,ldPhoto_5);
    var toSet:int = 10; time to time delay
    var toTime:int = place;
    var photoPerPage:int = 6;
    var fromPos:int = photoPerPage;
    var imgNum:Number;

    var subjectURL:URLRequest = new URLRequest ("testData_FM8.xml");
    var subjectURL:URLRequest = new URLRequest ("Sports.xml");
    var xmlLoader:URLLoader = new URLLoader (subjectURL);
    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);
    var subjectXML:XML = new XML();
    subjectXML.ignoreWhitespace = true;
    subjectXML.ignoreComments = true;
    subjectXML.ignoreProcessingInstructions = true;

    function xmlLoaded(evt:Event):void {}
    subjectXML = XML (xmlLoader.data);

    If {(root.loaderInfo.bytesTotal is root.loaderInfo.bytesLoaded)
    removeEventListener (Event.ENTER_FRAME, xmlLoaded);
    trace ("data XML file loaded");
    trace (subjectXML);
    } else {}
    trace ("file not found");
    }
    imgNum=2;//subjectXML.ROW.length;
    trace (subjectXML);
    loadThumb (0);
    }
    function loadThumb(startPos:int):void {}
    var count:Number = aPhoto.length;
    trace (subjectXML.Database);
    for (var i = 0; i < count; i ++) {}
    try {}
    aPhoto[i].source="images/"+subjectXML.ROW[startPos+i]. ImageName + "_main.jpg";
    } catch (error) {}
    trace (e);
    }
    aPhoto [i] .mouseChildren = false;
    aPhoto [i] .addEventListener (MouseEvent.MOUSE_DOWN, onThumbClick);
    }
    trace ("current mem:" + System.totalMemory);
    ldAttract.visible = false;

    }
    function unloadThumb (): void {}
    var count:Number = aPhoto.length;
    for (var i = 0; i < count; i ++) {}
    aPhoto [i] .unload ();
    aPhoto [i] .removeEventListener (MouseEvent.MOUSE_DOWN, onThumbClick);
    }
    trace ("current mem:" + System.totalMemory);

    }

    function onThumbClick(evt:MouseEvent) {}
    var i: Number;
    trace ("Thumbnail clicked" + evt.target.name);
    i = findPos (evt. Target.Name);
    ldLrgPhoto.source="images/"+subjectXML.ROW[i+fromPos]. LOCAL_OBJECT_ID + "_main.jpg";
    ldLrgPhoto.visible = true;
    btnPrev.visible = false;
    btnNext.visible = false;

    gotoAndStop ("showPhoto");
    }
    function findPos(thumb:String):Number {}
    var pos:Number;
    var count:Number = aPhoto.length;
    for (var i: Number = 0; i < count; i ++) {}
    If (thumb == aPhoto [i] .name) {}
    POS = i;
    }
    }
    return pos;
    }

    Mark,

    The ':' is what we call a scope resolution operator. Using namespace allows you to potentially have two or more nodes that have the same name but a namespace 'different '. "These are normally specified in xml in the form xmlns:mynamespace ="http://myuniqueURI.com/etc"

    Normally, you would use the mynamespace:node by naming your xml nodes that are specific to this namespace.

    But the best is that namespace by default, when there is no real Prefixeespacenom: in the name of node as:

    That's how it is specified in your xml file, that is to say all the nodes without a prefix belong to the filemaker namespace.

    In actionscript, you navigate by using the scope-resolution operator and the variable that represents the namespace does not necessarily resemble the part "mynamespace" above. In your case the namespace used was the one by default (no), but a value has been assigned.

    To the question of the length, you must use the length() method, otherwise the e4x filtering seeks nodes named 'length' and creating a XMLList with no entry in there (because it's not). It is a common thing with other "Properties" that are expressed in the form of methods like children() and often take me when I started with the model XML as3.

Maybe you are looking for

  • Issue of CPU/processor T60 upgrade

    Hi all I have a T60 (1953-DAF model) with a 1.66 GHz processor (type T2300E). I want to upgrade the processor to one with a VT (Virtualization Technology in support of 64-bit) capability, say T2400 or higher. I would like to know if there is any limi

  • I have Windows insalled in the incorrect drive letter. How to pass the letter to C:?

    Installed XP, HD is located on G? I decided to reload my PC, put XP Professional SP2 32 bit on it... Well, I have a little problem. I installed it fine, but my HD is located on drive G instead of C... How can I fix? It won't let me install my drivers

  • Internet Explorer does not work after you install the kb2761451 update

    Original title: I downloaded the update and now Internet security security update kb2761451 explore does not open.  So I deleted it and Explorer opens.  This update is listed as important.  What should I do? The Explorer is 9.

  • iTunes opens is no longer

    iTunes store won't open on computer.  Used to open.  Isn't now.  Opens fine on iphone and Kindle Fire.  Does not even diagnosed.  Flush down does not work.

  • CLICK ONCE THE UNINSTALL PROGRAM HAS STOPPED WORKING

    I'M UNABLE to UNINSTALL a PROGRAM CALLED BESTBUY PC approx. AND I ALWAYS GET THE SAME ANSWER, whenever I TRY TO UNINSTALL it FROM MY COMPUTER. THANK YOU FOR YOUR HELP HAVE A NICE DAY...