Strange a behavior in XML file

I want to make a dynamic text that: [LIST=1]
[*]is scrollable
[*]it has an ability to increase or decrease font size
[*]contains images wrapped in <a> tags
[*]the content is loaded from an external XML file (I know
that right now using XML seems like going on the hard way, but
later I will need it, so please don't suggest omitting the XML
way.)
[*]in needs to be Action Script 2, and the site must work on
Internet Explorer 6 (this is the dire need of my clients,
sorry)[/LIST]I managed to get this working:
[URL]http://www.ctdd.ro/izorep/[/URL]
The problem is - as you can see - with the image in the upper
right corner of the dynamic text. Try for yourself since it's
rather hard to describe. I can click on it and nothing happens.
(Right click gives open in a new window and open, but left click
fails to work.)
This is the script it does the loading part,
alma is the current size set by the magnifying glasses at
bottom of the page.
The function
meretez does the resizing part, that seems to work.
The home.xml can be found here:
[URL]http://www.ctdd.ro/izorep/home.xml[/URL]
I hope someone could help me.
P.S.: The myHome_txt is a dynamic text with embedded Minon
Pro, and it's inside a myHome movie clip. And now the code:

Its confusing. I tried your same xml content in the flash
IDE... but I substituted absolute urls for the images (just did a
google search for a random image) and it worked. So trying absolute
urls (again, I know you already tried it) is the only thing I can
suggest at this at this point... I'm out of ideas.
You don't have an invisible button or anything on the site
(with useHandCursor set to false) or anything like that do
you?

Similar Messages

  • Want to place advanced color behavior in XML file

    Hey all,  I've got a question about how to integrate advanced color/radial effects. I'm new to XML and got not a clue how to integrate the one code in the other.  Hopefully somebody can point out to me how to integrate the effects in my config file
    This is my config file
    <?xml version="1.0" encoding="UTF-8"?>
    <template_config  bgColor="0x000000" handlerOpacity="100" textColor="0xFFFFFF" logoUrl="logo.png" defaultBg="kandidaten.swf" bgMusic="false" startSound="false">
    <nameOfYourWebsite>website</nameOfYourWebsite>
         <rubs>
              <rub>
                   <title>home</title>
                   <folder>modules/home/</folder>
                   <background>kandidaten.swf</background>
              </rub>
              <rub>
                   <title>html text</title>
                   <folder>modules/text/</folder>
                   <background>kandidaten.swf</background>
              </rub>
              <rub>
                   <title>news</title>
                   <folder>modules/news/</folder>
                   <background>kandidaten.swf</background>
              </rub>
              <rub>
                   <title>team</title>
                   <folder>modules/team/</folder>
                   <background></background>
              </rub>
              <rub>
                   <title>mini slideshow</title>
                   <folder>modules/mini_slideshow/</folder>
                   <background>kandidaten.swf</background>
              </rub>
              <rub>
                   <title>multimedia gallery</title>
                   <folder>modules/multimedia_gallery/</folder>
                   <background>kandidaten.swf</background>
              </rub>
              <rub>
                   <title>your swf</title>
                   <folder>modules/swf/</folder>
                   <background>kandidaten.swf</background>
              </rub>
              <rub>
                   <title>links</title>
                   <folder>modules/links/</folder>
                   <background></background>
              </rub>
              <rub>
                   <title www="http://www.des.net">external link</title>
                   <folder></folder>
                   <background></background>
              </rub>     
              <rub>
                   <title>contact</title>
                   <folder>modules/contact/</folder>
                   <background>opdrachtgeverstest.swf</background>
              </rub>
         </rubs>
         <bottom_menu>
              <twitter>tidamz</twitter>
              <rss>http://feeds.feedburner.com</rss>
         </bottom_menu>
    </template_config>
    This are the effects I want to import
    <environments>
         <environment audio="../swf">
              <name>home</name>
              <upperalpha>100</upperalpha>
              <loweralpha>50</loweralpha>
              <upperscale>100</upperscale>
              <lowerscale>100</lowerscale>
              <clusters>10</clusters>
              <clustermin>3</clustermin>
              <clustermax>5</clustermax>
              <backgroundcolorouter>0x3003300</backgroundcolorouter>
              <backgroundcolorinner>0x99cc00</backgroundcolorinner>
              <backgroundcolorfilltype>linear</backgroundcolorfilltype>
              <shape colortype="monotone">
                   <name>Petal</name>
                   <color>FFFFFF</color>
                   <color>ccff99</color>
              </shape>
         </environment>

    Lets take for example you are having the response in following format
    response := '<Response>
    <r><name></name><r>
    <r><name></name><r>
    </Response>'
    Convert it to XMLTYPE using the following
    xml_type := XMLTYPE(response);
    select extractvalue(xml_type,'/Response/r[1]/name') into result from dual;
    '1' in [1] refers to the index of the similiar node.(r node)

  • Work flow task id not found in UWL config XML file

    Hi
    We are facing a strange issue with UWL XML file.
    We are running EP 7.0 SP13
    We configured UWL and we are able to see the work items in UML iview.  These are the same work items as seen in SAP Inbox.
    But when we open the uwl.webflow.<system alias> XML file corresponding to the back end system, We were not able to see the task id of the work flow item displayed in the UWL.
    Any help on this would be highly appreciated.
    Thanks and Regards
    VNK

    Hi VNK
    I am facing the same issue - Please let me know if you have found a solution.
    Regards
    John

  • Testing SWF with external XML file, strange problem.

    Hi!
    My problem started after migration to 2.01. But I think it's
    not version problem.
    I have old project which uses external XML files ("
    http://www.mydomain.com/myxml.xml").
    When I teste project in "bin" folder it works perfect and SWF
    import data from XML.
    I created new Flex project and copied all scripts from old
    one. And my new app can't read external XML!!! (tested in "bin"
    folder):
    *** Security Sandbox Violation ***
    Connection to xmlURL halted - not permitted from
    file:///C:/myproject/bin/myproject-debug.swf
    BUT when I copy my new SWF to the old project "bin" folder
    then it WORKS! Strange!
    I found in Help "The Global Flash Player Trust directory" and
    I checked files: "flexbuilder.cfg", "flexbuilder.fbr" there are all
    my project paths (old and new).
    Thanks for help!
    newman

    You should your homework with Google and other search engines
    better ;)
    http://www.robrusher.com/1/2006/08/Flex-2-Error-with-XML.cfm

  • Opmn.xml file showing strange path and strange ias instance id

    hi every one,
    i have installed R12.1.1 on linux X86 platform.
    After Installing, everything is working properly. Iam able to connect the application and run reports.
    But when the error is coming
    when iam upgrading from 12.1.1 to 12.1.3.
    while applying 10.1.3.5 patch set, at the time installing the components
    iam getting the error showing
    "/nfs/bld/d26/PRDXBLD9/apps/tech_st/10.1.3/opmn/bin/ons" no file or directory.
    so i have seen my opmn.xml file ( /prod_apps/apps/tech_st/10.1.3/opmn/conf/opmn.xml)
    the file is showing these strange path
    <variable id="LD_LIBRARY_PATH" value="/nfs/bld/d26/PRDXBLD9/apps/tech_st/10.1.3/lib" append="true"/>
    </environment>
    <process-type id="IASPT" module-id="IASPT" working-dir="/nfs/bld/d26/PRDXBLD9/apps/tech_st/10.1.3/iaspt/bin">
    its showiing the path /nfs/bld/d26/PRDXBLD9
    could you please clear my doubt why this file showing this strange path.

    HI ,
    i have some confusion regarding opmn.xml file.
    i have seen opmn.xml file in two different locations.
    1. first location $INST_TOP/ora/10.1.3/opmn/conf
    this file showing the correct variables as per my current environment.
    2. second location $ORACLE_HOME(10.1.3 Oracle Home)/opmn/conf/
    this file showing the strange variables which are not my current variables.
    could you please explain why these two files are showing differnet varibles .
    could you please explain when and where these two files are used by the application tier.
    please reply me as sooon as posssibe.

  • Strange problem when validating XML agains DTD file.

    Dear experts,
    I'm write a simple code snippet that validates my XML file agains a given DTD.
    It allways report the following error:
    org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)Althought, my xml file is OK with Xmlspy.
    My code is:
    System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
                             "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
          DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
          factory.setNamespaceAware(true);
          factory.setValidating(true);
          factory.setAttribute(
              "http://java.sun.com/xml/jaxp/properties/schemaLanguage",
              "http://www.w3.org/2001/XMLSchema");
          factory.setAttribute(
              "http://java.sun.com/xml/jaxp/properties/schemaSource", SchemaUrl);
          DocumentBuilder builder = factory.newDocumentBuilder();
          Validator handler = new Validator();
          builder.setErrorHandler(handler);
          builder.parse(new java.io.FileInputStream(new java.io.File(XmlDocumentUrl)));And here are the xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE capsule SYSTEM "c:/SampleFiles/capsule.dtd">
    <capsule>
         <header>
              <name>Capsule 1</name>
              <author>Author</author>
              <company>Company</company>
              <last-save-time>Fri Apr 01 14:59:21 GMT+07:00 2005</last-save-time>
              <description>description</description>
         </header>
         <datasets>
              <dataset type="input">
                   <name>dataset1</name>
                   <description></description>
                   <columns>
                        <column type="fromsource">
                             <name>partno</name>
                             <data-type>varchar</data-type>
                             <length>80</length>
                             <precision/>
                             <scale/>
                             <allow-null>false</allow-null>
                             <default-value/>
                        </column>
                        <column type="notfromsource">
                             <name>balanceonhand</name>
                             <data-type>integer</data-type>
                             <length/>
                             <precision/>
                             <scale/>
                             <allow-null>false</allow-null>
                             <default-value/>
                        </column>
                   </columns>
                   <rule>LET a=update; LET b=employye set salary = 100; print a + b</rule>
                   <!--output: update employee set salary = 100-->
                   <command>inmemory (getvalue_dataset("dataset1".rule))</command>
                   <params>
                        <param>
                             <name/>
                             <type/>
                        </param>
                   </params>
              </dataset>
         </datasets>
    </capsule>What I can do now? Change my xml file?
    Please provide some hints.
    Thanks in advance.

    I tried to remove the DOCTYPE, but the problem stayed the same.
    Thanks.

  • Illegal combination when importing xml file into xmltype column

    I have the following control file.
    LOAD DATA
    CHARACTERSET UTF8
    INFILE *
    INTO TABLE IMPORTRAWXML TRUNCATE
    SITEID constant 0
    ,VENDORID constant 17
    ,SITEFORMATID constant 2
    ,"\\plutonium\outcomes\AHA GWTG-Outpatient\Programs\DataTransfer\LoadTest\V17_standard_test.xml" filler char(1000)
    ,RAWDATA LOBFILE ("\\plutonium\outcomes\AHA GWTG-Outpatient\Programs\DataTransfer\LoadTest\V17_standard_test.xml")
    TERMINATED BY EOF
    )When I run it using sqlldr command line I get the following error:
    SQL*Loader-350: Syntax error at line 1.
    Illegal combination of non-alphanumeric characters
    <?xml version="1.0" encoding="ISO-8859-1"?>Does anyone have any idea what I am doing wrong here? If I remove the fully resolved path (both the control file and xml file are in the same folder) it tells me it can't find the file to load.
    HELP!!!!
    Thanks,
    Eva

    evaleah wrote:
    I have made sure all my home settings are correct in my registry editor and they are. Another thing to note is the control file I am using works 100% perfectly, beautifully when called from Toad for Oracle. It is when called from the command line utility that it fails. Is there anyway to determine what the difference could be?
    So we know that I can work (toad works), but it doesn't yet work in a "cmd" environment.
    Just as any other program Toad is also a client and uses NLS and other environment settings. Maybe these are stored in the registry, maybe the are being set by Toad by reading a configuration file while it is started or while running.
    As said, on Windows its tricky...
    Setting properties in the registry will not mean that they are the same a "cmd" window or maybe not even been set.
    If you execute / run "cmd" then the "set" statement/command will output the environment settings that will be used during the livetime of that "cmd" session.
    C:/> setIn my laptop environment (windows 7 64 bit) it will show the following
    C:\>set
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\marco\AppData\Roaming
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=00-00-000
    ComSpec=C:\Windows\system32\cmd.exe
    DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Users\marco
    LOCALAPPDATA=C:\Users\marco\AppData\Local
    LOGONSERVER=\\AMISNT
    MpConfig_ProductAppDataPath=C:\ProgramData\Microsoft\Windows Defender
    MpConfig_ProductCodeName=AntiSpyware
    MpConfig_ProductPath=C:\Program Files\Windows Defender
    MpConfig_ProductUserAppDataPath=C:\Users\marco\AppData\Local\Microsoft\Windows
    Defender
    MpConfig_ReportingGUID=CA08B82B-EF0A-4107-89D8-ED5BB37E7515
    NUMBER_OF_PROCESSORS=2
    OS=Windows_NT
    Path=C:\oracle\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Win
    dows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PERL5LIB=c:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x64;c:\oracle\prod
    uct\10.2.0\db_1\perl\5.8.3\lib;c:\oracle\product\10.2.0\db_1\perl\site\5.8.3;c:\
    oracle\product\10.2.0\db_1\perl\site\5.8.3\lib;c:\oracle\product\10.2.0\db_1\sys
    man\admin\scripts;
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=170a
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC=C:\Users\Public
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\Windows
    TEMP=C:\Users\marco\AppData\Local\Temp
    TMP=C:\Users\marco\AppData\Local\Temp
    USERDNSDOMAIN=AMIS
    USERDOMAIN=AMIS
    USERNAME=marco
    USERPROFILE=C:\Users\marco
    VBOX_INSTALL_PATH=C:\Program Files\Sun\VirtualBox\
    VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
    windir=C:\Windows
    C:\>The only thing that identifies that I have Oracle installed is set in the %PATH% variable and %PERL5LIB%. From the path setting you can also deduct that I have Oracle 11 and Oracle 10 software installed. So when I execute "sqlldr" what NLS settings will it use and which tnsnames.ora alias for example to connect to the database...?
    You can you do it and see what happens...
    C:\>sqlldr
    SQL*Loader: Release 11.2.0.1.0 - Production on Wed May 12 20:36:25 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Usage: SQLLDR keyword=value [,keyword=value,...]
    Valid Keywords:
    ...So it will pick the first "sqlldr" in the %PATH% environment setting. But what about NLS...? As said to be absolute sure you will have to set it in your environment.
    C:/> set ORACLE_HOME="C:\oracle\product\10.2.0\db_1"
    C:\> set
    Path=C:\oracle\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Win
    dows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PERL5LIB=c:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x64;c:\oracle\prod
    uct\10.2.0\db_1\perl\5.8.3\lib;c:\oracle\product\10.2.0\db_1\perl\site\5.8.3;c:\
    oracle\product\10.2.0\db_1\perl\site\5.8.3\lib;c:\oracle\product\10.2.0\db_1\sys
    man\admin\scripts;
    ORACLE_HOME="C:\oracle\product\10.2.0\db_1"
    C:\> echo %ORACLE_HOME%
    "C:\oracle\product\10.2.0\db_1"Because if I enter "sqlldr" it will pick the executable from the 11.2 install, but the ORACLE_HOME is set to the wrong environment
    Executing sqlldr now will give me an error
    C:\>sqlldr
    Message 2100 not found; No message file for product=RDBMS, facility=ULMessage 21
    00 not found; No message file for product=RDBMS, facility=UL
    C:\>Another thing you can notice now is that from that output alone, you can't deduct the Oracle "sqlldr" version anymore. Setting the ORACLE_HOME environment to either 10.2 or 11.2 will cause "sqlldr" to execute normally (at least thats how it looks) BUT in the case of the oracle 10.2 setting it will use the wrong message files etc. At least not the correct software versions / files "sqlldr" is shipped with. So you can (and most of the time) will get strange errors.
    C:\> set ORACLE_HOME=C:\oracle\product\10.2.0\db_1
    C:\>sqlldr
    SQL*Loader: Release 11.2.0.1.0 - Production on Wed May 12 20:45:00 2010
    C:\>set ORACLE_HOME=C:\oracle\product\11.2.0\dbhome_1
    C:\>sqlldr
    SQL*Loader: Release 11.2.0.1.0 - Production on Wed May 12 20:49:50 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Usage: SQLLDR keyword=value [,keyword=value,...]
    ...In the registry you can find a lot of those variables are set for ORACLE_HOME, ORACLE_BASE, SQLPATH, maybe TNS_ADMIN, ORACLE_SID, NLS_LANG. You can find the variables IN the registry on two places. The most common one is the SYSTEM wide environment settings under //HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE and in my case for 11.2 under //HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/KEY_OraDb11g_Home1.
    You could overrule this for to be active on "my user session", my login session as account "marco" under //HKEY_CURRENT_USER/Software/Oracle, but no one using Windows is doing this.
    Besides the "cmd" and registry environment, there is a different place as well were you can set these parameters. In windows go to "start", click "control panel", click "system", click tab "Advanced" and then click on the button on the bottum with "Environment Variables". Here you can see the distinction between user and system wide variables as well. Here you can also set NLS_LANG, ORACLE_HOME etc. If I am not mistaken than these will be the default values used in a fresh "cmd" window session. But they can and will interfere with programs you start via clicking them. For example something a Java program like SQL Developer (and/or Toad). If those values are not overrulled by the program by for example using his own variables from a config file or else, those sessings from the "system" / control panel item will be used. If it is the wrong mix, you will encounter strange issues.
    Setting ORACLE_HOME and ORACLE_BASE will be used by a lot of derived other settings for example the default place SQL*Net drivers and tnsnames aliases etc will be checked. For example setting the ORACLE_HOME to
    C:\> set ORACLE_HOME=C:\oracle\product\10.2.0\db_1will result in that the tnsnames aliases from
    C:\> set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\NETWORK\adminwill be used and NOT the ones maybe needed from
    C:\oracle\product\11.2.0\dbhome_1\NETWORK\adminYou can overrule this behavior by setting the TNS_ADMIN variable. By default, most explicit form for example on linux and Unix, the following rule will be used by Oracle
    1) .tnsnames.ora in the home directory of the user
    2) standard default: $ORACLE_HOME/network/admin
    3) behavior can be overruled via setting $TNS_ADMINThe fact that you are able via Toad to execute it correctly proves you that it can be done. But Toad uses in your session "SQL*Net" or JDBC or ODBC or ADO or ? via its own configuration environment settings that are being set on which values...?
    Both Oracle and Toad use the OSI model (http://en.wikipedia.org/wiki/OSI_model), both have to follow the same rules. There hasn't been changed that much over the years, character set conversions are done in the "two task common" layer of the data transport on either side (client/server) when data travels between a client and server. And don't forget a database can be also be a client when for instance database links are being used. One of the reasons to read old manuals because there the basics are still perfectly explained: http://download.oracle.com/docs/cd/A57673_01/DOC/net/doc/NWUS233/ch2.htm#twotask (Oracle 7.3.4 Networking Manual).
    This long long story is just to show you that you have more control if you set variables explicitly in a "cmd" window (and or in a linux/unix shell (as long as the session isn't "forked")) BUT you will have to be precise. Check the environment a set those environment variables that control / that are being used by "sqlldr" (and that are probably more then you realised, for example that SQL_PATH variable is the default directory where SQL*Plus is looking and saving its "SQL" and spool "LIS" files).
    HTH

  • Error parsing XML file from a HttpServletRequest using JAXP

    Hi,
    I am trying to generate an XML file from an HttpServletRequest. I am actually using file uploading method in JSP to send the XML file. I think the parser isnt able to correctly identify the XML file from the message body and hence it is giving some strange error messages. Has anyone of u managed to solve this problem ?
    Code snippet:
    //now build an XML document from the requested input stream
    InputStream in = myRequest.getInputStream();
    try {
    myDocRequest = myParser.parse(in);
    } catch (Throwable t) {
    throw new Exception("Could not build document",t);
    Error message is:
    [Fatal Error] :1:1: Content is not allowed in prolog.
    java.lang.Exception: Could not build document
    at XMLUtil.<init>(XMLUtil.java:91)
    at WCS.doPost(WCS.java:44)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at XMLUtil.<init>(XMLUtil.java:89)
    ... 20 more
    Actually if i just print out the message, it gives something like this:
    -----------------------------7d63dc71b06b2
    Content-Disposition: form-data; name="W"; filename="C:\work_projects\Capas.xml"
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <GetCapabilities version="1.0.0" service="wcs">
    <section>/WCS_Capabilities/Capability</section>
    </GetCapabilities>
    -----------------------------7d63dc71b06b2--
    Cheers.

    The ServletInput stream contains this:
    -----------------------------7d63dc71b06b2
    Content-Disposition: form-data; name="W"; filename="C:\work_projects\Capas.xml"
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    i.e., its the HTTP File Upload MIME stuff, followed by the XML. You need to wrap around the input stream something that can decode the HTTP MIME stuff and let you get at the XML itself, i.e., something like: com.orielly.servlet.multipart.MultipartParser (Apache has a similar 'file upload servlet).
    Jeremy

  • Load XML file into either List MyType or ObservableCollection MyType

    I have been searching and trying different suggestions for three days now, full time.  I am building a universal app for Windows 8.1 and Windows Phone 8.1.  The problem, apparently, is that doing this is different between Windows 7.1, Windows
    Phone 7.1, Windows 8, Windows 8.1, Windows Phone 8.1, and Windows 8.1 universal apps.  You find hundreds of different ways of doing this, none of which work.
    My XML file is of the form:
    <?xml version="1.0" encoding="utf-16"?>
    <ArrayOfPrize xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <Prize>
        <PrizeName>Dog</PrizeName>
        <PrizePath>http://www.dog.com</PrizePath>
        <PrizeOwner>System</PrizeOwner>
        <PrizeChecked>false</PrizeChecked>
        <Won>false</Won>
      </Prize>
    </ArrayOfPrize>
    I get errors like you can't do this with non-public types to header is missing, or I get a deaklock.  Every suggestion I have tried has led to either the same error message as the last one, or the same as some previous error message.  Microsoft
    conveniently left out this common case in their Universal App samples.  Please don't refer me to other articles, because if they were on the internet I have probably already tried them.  Sorry, my frustration is showing through.  Feel free to
    refer me to other articles.
    Below is my latest attempt that does not work:
    public async Task<T> ReadObjectFromXmlLocalFile(string filename)
     try
      T objectFromXml = default(T);
      XmlSerializer serializer = new XmlSerializer(typeof(T));
      Windows.Storage.StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
      StorageFile file = await localFolder.GetFileAsync(filename);
      string xmlText = await FileIO.ReadTextAsync(file);
      StringReader reader = new StringReader(xmlText);
      objectFromXml = (T)serializer.Deserialize(reader);
      return objectFromXml;
     catch (Exception e)
      ErrorBucket.AddError(e.Message);
      return default(T);
    Incidentally, every folder path leads to either C:\Data\SharedData... or C:\Data\Users..., which is very strange, since my project is not even on the C drive.  I have recreated the directory structure that it is looking for and put my files there, but
    eventually this is going to be an issue.  The program used to look in the correct place and then it stopped and starting looking in C:\Data, and I have no idea why.
    Larry Maturo

    Try code below.  I always like to write XML from the code before reading.  It is easier to debug the class formats when writing than reading.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Data;
    using System.Xml;
    using System.Xml.Serialization;
    using System.Xml.Schema;
    using System.IO;
    namespace XMLSerialize
    class Program
    const string FILENAME = @"c:\temp\test.xml";
    static void Main(string[] args)
    ArrayOfPrize arrayOfPrize = new ArrayOfPrize(){
    prizes = new List<Prize>(){
    new Prize(){
    prizeName = "Dog",
    prizePath = "http://www.dog.com",
    prizeOwner = "System",
    prizeChecked = false,
    won = false
    XmlSerializer serializer = new XmlSerializer(typeof(ArrayOfPrize));
    StreamWriter writer = new StreamWriter(FILENAME);
    serializer.Serialize(writer, arrayOfPrize);
    writer.Flush();
    writer.Close();
    writer.Dispose();
    XmlSerializer xs = new XmlSerializer(typeof(ArrayOfPrize));
    XmlTextReader reader = new XmlTextReader(FILENAME);
    ArrayOfPrize newArrayOfPrize = (ArrayOfPrize)xs.Deserialize(reader);
    [Serializable, XmlRoot("ArrayOfPrize")]
    public class ArrayOfPrize
    [XmlElement("Prize")]
    public List<Prize> prizes;
    [Serializable, XmlRoot(ElementName = "Prize")]
    public class Prize
    [XmlElement("PrizeName")]
    public string prizeName { get; set; }
    [XmlElement("PrizePath")]
    public string prizePath { get; set; }
    [XmlElement("PrizeOwner")]
    public string prizeOwner { get; set; }
    [XmlElement("PrizeChecked")]
    public Boolean prizeChecked { get; set; }
    [XmlElement("Won")]
    public Boolean won { get; set; }
    jdweng

  • XML File to 3rd Party Provider w/o any Middleware

    Hi
    I have a requirement wherein we are required to send XML files to 3rd Party Supply chain provided w/o using any middleware in most secured form. The Customer is on ECC5.
    One of options i could think about is as mentioned below.
    -  file based and using SFTP to send the XML file to 3rd Party provider
    Could you please let me know if their's any other alternate approach to meet this strange requirement.
    PS : 3rd party provider can provide webservice. But the question is how do we consume this into ABAP envirnoment and call them into ABAP COde. Any pointers on this as well would be really helpful
    Thanks

    Hi,
    I remember working on ECC5.0 and consuming a web service to create an ABAP Proxy.
    @ Ravi
    Refer the below link for consuming a web service and creating an ABAP proxy.
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm
    Regards,
    Chen

  • File Adapter and reading all XML files from direcotry

    Problem occurs on PI 7.1
    I defined sender file adapter. File name mask is: "*.xml" to read all XML messages from directory.
    Quality of service is: Exactly One.
    Poll Interval: 30
    Retry interval: 30
    Processing mode: Archive with option "Add Timestamp".
    Processing sequence: by name.
    I though that with above configuration my File Adapter will be reading folder for all coming XML files. But  somehow it is reading XMLs only when I'm activating it in Integration Builder.
    Any idea what can cause such strange problem?

    Hi Tomasz,
    As per my understanding, you need to activate the file adapter for reading the XML files on your directory. Right?
    If that is the case, then the issue might be with the Cache.
    1. Clear the cache from the Integration Builder.
    2. Check in SXI_CACHE whether there are any issues. Click on Delta Cache refresh to find out if there are any cache related issues.
    Thanks,

  • Delete xml version in xml file

    Hello,
    I have a strange thing to do. I need to delete xml version tag (<?xml version="1.0" encoding="utf-8" ?>) from en xml file. I use a receiver file adapter and I want to know how it's possible to delete this tag.
    I need to do that as receiving application collects xml messages and adds xml version in collected xml file.
    Thanks in advance,
    Cédric

    hi Udo,
    >>>and clever...
    so it should be you who proposed it:)
    BTW
    I'm not sure if with XSLT you won't have to
    do it in the commnication channel (and not in the interface mapping) - (the xslt mapping)
    but I cannot test it right now
    Regards,
    michal

  • How to write and read Xml file from database if possible?

    Hi all,
    I need to read the .Xml file when receives from Source systems and write the data into the table as well as write in the.xml file thru reading the data from table as per the client needs. I am stranger to this area. Since, please provide some examples how to approach the same.
    Thanks in advance !!
    Regards.
    Vissu.....

    The XML DB forum is better suited to your question.
    It also has a FAQ which details how to read and shred XML into tables as well as other common XML based questions...
    XML DB FAQ

  • Error parsing XML file

    Hi Everyone:
    When I wrote a java class to parse an XML file,
    I got this strange error:
    "Unconvertible UTF-8 character beginning with 0x97" (line number may be too low)."
    I am using the XMLReaderImpl provided by appache, here is how i wrap it
    String READER = "org.apache.crimson.parser.XMLReaderImpl"
    XMLReader reader = XMLReaderFactory.createXMLReader(READER)
    reader.parse(xmlFile);
    now I copied and paste my xmlfile from Word doc to notepad, and then rename it as an XML file, does this have anything to do with the error i am getting, please let me know,,
    Thanks,

    Okay...I am replying my own thread..this is odd...
    but i found the solution to it...
    if you are editing your xml in a notepad or other text editor, remember to change the encoding from ansi to utf when you save it. That is all you need to do.
    You don't actually need to specify the encoding scheme in your xml doc, it is utf by default...hope this helps, so someone else won't run into the same problem
    cheers, everybody

  • XML DB: As XML file size doubles validate time more than doubles

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    We have default XMLDB install. I am using schemavalidate() to successfullly validate xml files against a registered xsd. For some reason as the files size doubles the time to validate the file grows at a faster rate than double? We wanted to generate approx 18MB files since they hold 5000 records. But as you can see it appears I would be better off generating six 3MB files instead. What init.ora or xdbconfig.xml parameter might I change to help out with behavior? Any other ideas of why this happening? Is this an example of "doesn't scale"?
    1.5MB 3 Seconds
    3MB 15 Seconds
    6MB 1 Minute
    12MB 6 Minutes
    18MB 16 Minutes
    Code is simple..
    procedure validate_xml_file (p_dir in varchar2, p_file in varchar2) is
    v_xmldoc xmltype;
    begin
    select XMLTYPE(bfilename(p_dir, p_file),NLS_CHARSET_ID('AL32UTF8'))
    into v_xmldoc
    from dual;
    v_xmldoc.schemaValidate();
    end validate_xml_file;

    If I take the clause off the end of the cview table this procedure does not work at all.. It fails at the schemavalidate call...
    Error report:
    ORA-19030: Method invalid for non-schema based XML Documents.
    ORA-06512: at "SYS.XMLTYPE", line 345
    ORA-06512: at line 26
    19030. 00000 - "Method invalid for non-schema based XML Documents."
    *Cause:    The method can be invoked on only schema based xmltype objects.
    *Action:   Don't invoke the method for non schema based xmltype objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Std report

    Hi, In which SAP standard report I can see the value of KUKLA-KNA1. regards, SPS.

  • How to set up an email account on one only one machine

    I need to be able to set up an email account on only one machine. I know I can disable the account on other machines, but that's not what I want. I don't want the email account to appear in the account list on my other machines, even if it is disable

  • Print PDF - really low quality?

    Is there a way to adjust the quality settings of the PDFs that are output by selecting from the PDF menu on the print screen? Whenever I do that the PDFs come out really really low quality. I would like them to be as close to the originals as possibl

  • Burning dvd of photos

    I made an iDVD using photos and tried to burn it to a DVD-R. For some reason I'm getting this error- There are no video tracks defined in the current project, error in product structure. Im new to using iDVD, can someone tell me what I need to do? Th

  • Regarding bpm scenarios

    hi   Can any one provide me some scenarios related to bpm,coz i am trying to work out some in lab.i was unable to use all the step types with the scnarios i have. regards ramu