XML Reader/Writer

Is there a simple class for Reading an XML file in, getting it's elements/attributes etc, and one for writing to an XML file?
Here is a simple XML file contents:
<?xml version="1.0" ?>
<java>
<temp value="98.6 F" />
</java>
It's just a few lines of basic text. Right now I am just reading/writing using a standard BufferedReader, PrintWriter combo and the logic flows based on a known tag-flow. But
what if I dont know what and where different tags in a file? Isent there a Reader-Writer for
this that will collect the tags and their attributes/values for me???

Hi there,
Why do you want to re-invent the wheel when some cars running on these wheels already exists.
There are APIs that specialize in parsing a XML Document to it's shreds.
Xerces by http://xml.apache.org/xerces is one of them. The choice that you have is either to use the SAX portion of the API or the DOM portion. The easiest alternative is to use neither and go for the JDOM api. http://www.jdom.org.
If you want to learn more about xml processing with Java I would advise you read Brett McLaughlin's Java/XML book or look at http://www.ibiblio.org

Similar Messages

  • Cluster and Read Write XML

    In my applications I allow users to save their settings. I used to do this in a Ini file. So I wrote a Vi that could write any cluster and it worked ok. When I discovered that in the newer versions of LabVIEW you could Read/Write From/To xml, I changed inmediatly because it have some advantages form me but I am having some trouble.
    Every time I want to save a cluster I have to use
    Flatten To XML -> Escape XML -> Write XML
    and to load
    Load From XML -> Unescape XML -> Unflatten from XML.
    I also do other important things each time I save or load settings. So it seems to be reasonable to put all this in just two subvi's. (One for loading, One for saving). The problem is that I want to use it with any cluster
    What I want with can be summarized as following:
    - SaveSettings.vi
    --Inputs:
    ---Filename
    ---AnyCluster
    ---Error In
    --Outputs
    ---Error Out
    -LoadSettings.vi
    Inputs:
    ---Filename
    ---AnyCluster
    ---Error In
    Outputs
    ---DataFromXML
    ---Error Out
    I have tried using variants or references and I was not able to make generic sub vi (sub vi that don't know what is in the cluster). I don't want to use a polymorphic vi because it will demand making one load/save pair per each type of settings.
    Thanks,
    Hernan

    If I am correct you still you need to wire the data type to the Variant To Data. How can you put in a subvi ALL that is needed to handle the read/write of the cluster? I don't want to put any Flatten To XML or Unflatten From XML outside.
    The solution I came out with INI files was passing a reference to a cluster control but it is real unconfortable because I have to itereate through all items.
    When a control has a "Anything" input, is there any way to wire that input to a control and remains "Anything"?
    Thanks
    Hernan

  • Pls How do I read/write a xml file using java

    I want to read/write trough a server/client a file.xml from evt. the same computer, this is the code for the client
    import java.io.*;
    import java.net.*;
    class client
    public static void main (String args[]) throws Exception
    final String msg = "<beg>note</beg>";
    // BufferedReader in = new BufferedReader(new FileReader("note.xml"));
    final Socket clientSocket = new Socket ("localhost", 8000);
    final OutputStream clientStream = clientSocket.getOutputStream ();
    clientStream.write (msg.getBytes ());
    // clientStream.write (in.getBytes ());
    clientSocket.close ();
    // BufferedReader in = new BufferedReader(new FileReader("note.xml"));
    // System.out.println(in.readLine());
    I want to read it and put it in a buffer...
    please somebody help me!!!
    regards
    Harry

    Pls read this:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=271751
    And don't post the same message twice. It's annoying.

  • Read,write and create word document with list data

    Hi,
    My requirement is that I have a custom list called List1 and which has a 4 (suppose XName, location, phone, email)columns and also have a Template document(.dot). If I click on save button , new document has to create from the Template document(.dot) and
    should modify the content depends on list columns.
    For that I need to read the document , find out the text where XName , location,,phone, email and replace with the list item data(user entered data). 
    Can anybody please refer links for read,write and create word document?
    Thanks in advance.

    Yes, you can using Office Open XML. I found it to be a lot more cumbersome and in the end not a money saving approach:
    https://msdn.microsoft.com/en-us/library/office/bb448854.aspx?f=255&MSPPError=-2147217396
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • ~/oradiag_$USER/.. and "Directory does not exist for read/write" issue

    Hi.
    Recently I've discovered that ADR was creating a folder in one of ours Oracle 11.2.0.1 server, in the users home like ~/oradiag_$USER/.. The problem is that this logging files dont stop growning, and they are filled only with this lines:
    Wed Apr 11 13:40:06 2012
    Directory does not exist for read/write [usr/oracle/product/11.2.0/log] [usr/oracle/product/11.2.0/log/diag/clients]
    Wed Apr 11 13:40:06 2012
    Directory does not exist for read/write [usr/oracle/product/11.2.0/log] [usr/oracle/product/11.2.0/log/diag/clients]
    Wed Apr 11 13:40:06 2012
    Directory does not exist for read/write [usr/oracle/product/11.2.0/log] [usr/oracle/product/11.2.0/log/diag/clients]
    Wed Apr 11 13:40:06 2012
    Directory does not exist for read/write [usr/oracle/product/11.2.0/log] [usr/oracle/product/11.2.0/log/diag/clients]
    Wed Apr 11 13:41:06 2012
    Directory does not exist for read/write [usr/oracle/product/11.2.0/log] [usr/oracle/product/11.2.0/log/diag/clients]
    etc
    I've searched around internet about this issue all that I've found is a "workaround" by creating those folders. And yep, it works, it stops growning.
    Then I checked the others servers that we have, and the problem replicates in some servers with the same Oracle version.
    My question is: Why this? Why in some servers ADR is looking for that folder? That folder didnt exist in any of them, but only some servers tries to read/write on it (or, at least, log it) What parameter relies on it?
    Regards.

    Metalink note
    11g Sqlnet Log Shows Error "Directory does not exist for read/write" [ID 797678.1]
    Errors Filling log.xml and sqlnet.log: Directory does not exist for read/write [opt/oracle/oemagent/agent11g/log] [ID 1291286.1]

  • Read/write operation on SAP IDOC file

    Hi All,
    We are developing an application, which will be used for registering and processing of travel data for a client.One of itu2019s functionality is to get the data from external system in different format(like CSV, Excel, Fixed Flat file, XML, main frame file, DBF and SAP IDOC) and import it into Oracle databases.
    One of the design considerations for it, is to read these files and convert it into predefined XML format
    and then import these data from XML to oracle database.
    Currently we are analyzing the requirement and trying to find out all the Open Source JAVA API which can convert these different format files to predefined XML format, using some mapping file.
    We have found out Open Source JAVA API for all the file format, except SAP IDOC files.
    Any Java API to read/write the SAP IDOC file, Please advise
    Regards,
    Madhu
    Edited by: Madhu Sudhan on Feb 17, 2009 12:06 PM

    Hi All,
    We are developing an application, which will be used for registering and processing of travel data for a client.One of itu2019s functionality is to get the data from external system in different format(like CSV, Excel, Fixed Flat file, XML, main frame file, DBF and SAP IDOC) and import it into Oracle databases.
    One of the design considerations for it, is to read these files and convert it into predefined XML format
    and then import these data from XML to oracle database.
    Currently we are analyzing the requirement and trying to find out all the Open Source JAVA API which can convert these different format files to predefined XML format, using some mapping file.
    We have found out Open Source JAVA API for all the file format, except SAP IDOC files.
    Any Java API to read/write the SAP IDOC file, Please advise
    Regards,
    Madhu
    Edited by: Madhu Sudhan on Feb 17, 2009 12:06 PM

  • ..Primavera\Project Management\PM.ini cannot be set to read-write status

    I have installed Primavera P6.1 in a laptop under Administrator Login.
    After that, when I log in to the laptop with my user Id, primavera fails to start and gives the following message:
    C:\Program Files\Primavera\Project Management\PM.ini cannot be set to read-write status.
    Kindly let me know how to fix this problem.
    Regards

    Please tell your IT Admin to fix as following:
    The following is a summary of the minimum system requirements Primavera 6.2.X requires for users to be able to access and run components of the
    software :
    Window Folders:
     C:\Windows\System32\
    dbexpsda30.dll
    dbexpint.dll
    dbexpoda30.dll
    DbExpPrC.dll
    dbexpsda.dll
    Read&Execute/Read permission for Borland DBExpress drivers
     C:\Program Files\Common Files\Borland Shared\DBExpress\DBXConnections.ini
    C:\Program Files\Common Files\Borland Shared\DBExpress\DBXDrivers.ini
    Read&Execute/Read/Write permissions to create and modify database alias connections
     C:\Program Files\Primavera
    Read&Execute\Read permission to access files needed to run applications
     C:\Program Files\Primavera\Project Management\pm.ini
    C:\Program Files\Primavera\Methodology Management\mm.ini
    Read&Execute/Read/Write permission to access the ini file - required to log into the applications
     C:\Program Files\Common Files\Primavera Common
    Read&Execute/Read permission to access files needed to run applications
     C:\Program Files\Common Files\Primavera Common\Java\BREBootstrap.xml
    Read&Execute/Read/Write permission to change connection parameters for Claim Digger or API
    (If user does not have WRITE access the Database Configuration Setup utility (C:\Program Files\Common Files\Primavera
    Common\Java\dbconfig.cmd) for claim digger / API DOES connect to the database and read the configurations and will create a new configuration if
    entered, but displays error "error writing to bootstrap file" and BREBootstrap.xml file will not be updated with the proper database connection information.
     Output directory for File > Export , Job Services output files and Log output files
    Read&Execute/Read/Write to create and write output files
    Registry Keys:
     HKEY_LOCAL_MACHINE\Software\Borland
    READ
     HKEY_LOCAL_MACHINE\Software\Primavera
    READ
    Note: For the functions Claimdigger, Update Baselines, and Schedule Comparisons the key is opened in Read/Write/Delete mode.
     HKEY_LOCAL_MACHINE\Software\Primavera\Databases\[MM/PM]\Aliases
    NOTE: By default, users have FULL CONTROL to their HKEY_CURRENT_USER\SOFTWARE registry keys
    If a user does not have FULL CONTROL permission to these keys, when they create a new alias it will be stored under
    HKEY_CURRENT_USER\Software\Primavera\Databases\[MM/PM]\Aliases and will be displayed and available to ONLY the user account on the
    workstation that created the alias.
    If user does have FULL CONTROL permission to to these keys, when they create a new alias it will be stored
    under HKEY_LOCAL_MACHINE\Software\Primavera\Databases\[MM/PM]\Aliases and will be displayed and available to ALL user accounts on the
    workstation.
    Jawad
    Novo Rail, Sydney
    P6 Project Controls Co-ordinator and Administrator

  • Deserialization error: XML reader error: unexpected character content:

    Hi,
    I'm just learning to write web services. I pasted the service and it seems to work.
    It's code is :
    package server;
    import javax.jws.WebService;
    public class HelloImpl {
       * @param name
       * @return Say hello to the person.
       public String sayHello(String name) {
         return "Hello, " + name + "!";
    }I wired the service using spring, following the tutorial :
    public class HellowsImpl {
        String name;
        public HellowsImpl() {
        private Hellows service;
        public void setService(Hellows service) {
            this.service = service;
        public void sayHi() {
            try {
                service.sayHello(name);
            } catch (RemoteException e) {
                // TODO
        public Hellows getService() {
            return service;
        public void setName(String name) {
            this.name = name;
    }But when I try this :     HellowsImpl service ;
        service=(HellowsImpl)ac.getBean("hellowsclient");
    service.sayHi();I get the exception : Caught exception while handling request: deserialization error: XML reader error: unexpected character content: "fd"
    Where might be the problem?

    Hi, I am also facing this error while trying to create "Dynamic Proxy Client"
    I am accessing the WS method like this
    String UrlString = "http://localhost:1559/DynamicProxy/DProxy?WSDL";
    String nameSpace = "urn:DProxy/wsdl";
    String serviceName = "DProxy";
    String port = "DProxySEIPort";
    URL serviceUrl = new URL(UrlString);
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    Service service = serviceFactory.createService(serviceUrl,new QName(nameSpace,serviceName));
    dproxy.DProxySEI myProxy = (dproxy.DProxySEI)service.getPort(new QName(nameSpace,port),dproxy.DProxySEI.class);
    String message = myProxy.sayHello("rajeev");
    WSDL File content :
    <?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:DProxy/wsdl" xmlns:ns2="urn:DProxy/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="DProxy" targetNamespace="urn:DProxy/wsdl">
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:DProxy/types" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:DProxy/types">
    <complexType name="sayHello">
    <sequence>
    <element name="String_1" type="string" nillable="true"/></sequence></complexType>
    <complexType name="sayHelloResponse">
    <sequence>
    <element name="result" type="string" nillable="true"/></sequence></complexType>
    <element name="sayHello" type="tns:sayHello"/>
    <element name="sayHelloResponse" type="tns:sayHelloResponse"/></schema></types>
    <message name="DProxySEI_sayHello">
    <part name="parameters" element="ns2:sayHello"/></message>
    <message name="DProxySEI_sayHelloResponse">
    <part name="result" element="ns2:sayHelloResponse"/></message>
    <portType name="DProxySEI">
    <operation name="sayHello">
    <input message="tns:DProxySEI_sayHello"/>
    <output message="tns:DProxySEI_sayHelloResponse"/></operation></portType>
    <binding name="DProxySEIBinding" type="tns:DProxySEI">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="sayHello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body use="literal"/></output></operation></binding>
    <service name="DProxy">
    <port name="DProxySEIPort" binding="tns:DProxySEIBinding">
    <soap:address location="http://localhost:1559/DynamicProxy/DProxy" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/></port></service></definitions>
    and Here is my SEI Implementation class
    public java.lang.String sayHello(String name) throws java.rmi.RemoteException {
    String message = "hi.."+name+"..How r u";
    return message;
    Can any one help me plz...
    Thanks in advance..

  • Read/Write App Files Under Limited User Account

    Hi All,
    My desktop app is intended for Windows only. I'm writing files to the hard disk to store app specific configuration.
    The applications main data source is a ZIp file that consists several XML files. The user can store this ZIP anywehre they like and the application will extract the necessary files to a temp dir so that it can read in data.
    When logged into a PC as either an Administrator or Power User, I am able to read write my config files and extract XML files from the ZIP with no problem.
    When logged in as a user with "limited" access, I can only read and write the config files. But when I go to extract any XML files from the ZIP, it seem to get denied due to insufficient permissions.
    The working directory for storeing all these files is: C:\Documents and Settings\<USER NAME>\Application Data\<MY APP>\
    Don't users with limited access have full read/write permissions to their own home directory?
    If not, what can be done to give them full read write access? Is there perhaps some other location I should be using?
    Also, would code signing from some place like Verisign do any good?
    I'm targeting Windows 2000/XP.
    Thanks in advance.
    Regards,
    Jim

    You can also access the user folder through the registry:
         public static final String APP_DATA_FOLDER_CMD = REG_QUERY_UTIL
              + "\"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\"
              + "Explorer\\Shell Folders\" /v AppData";
          * Gets the current user Application Data folder path defined in the
          * registry.
          * @return The current user Application Data folder path.
         public static String getCurrentUserAppDataFolderPath()
              return queryREG_SZ(APP_DATA_FOLDER_CMD);
          * Performs the query in the registry for the specified value type.
          * @param queryString The query to be performed.
          * @param valueType The value type.
          * @return The value data for the specified value name in the registry.
         public static String queryREG_SZ(String queryString, String valueType)
              try
                   Process process = Runtime.getRuntime().exec(queryString);
                   StreamReader reader = new StreamReader(process.getInputStream());
                   reader.start();
                   process.waitFor();
                   reader.join();
                   String result = reader.getResult();
                   int p = result.indexOf("REG_SZ");
                   if (p == -1)
                        return null;
                   return result.substring(p + valueType.length()).trim();
              catch (Exception e)
                   return null;
         }This will get you the user directory from the registry. However, my issue is
    that the value returned was:
    C:\Documents and Settings\<USER NAME>\Application Data
    Which is great, but that folder didn't exists on my computer. I cannot find
    any documentation to say why it would be there. Except I had no Application
    Data folders under any user. I have XP.
    So when running the program on one computer, I had no valid folder to write
    to and it wouldn't let me create it. Said the <USER NAME> folder could not
    be written to. canWrite() returned false and the directory could not be
    created.
    On another computer, I had the Application Data folder, the canWrite()
    returned false, yet I was able to create a folder and file inside.
    I checked the default <ALL USERS> directory and the Application Data folder
    did not exist there.
    I don't understand how I am supposed to work around it...
    If the folder doesn't exist, I need to be able to create it, whether it's in the
    <ALL USER> or <USER NAME> folder.
    I guess I am counting on the canWrite() to be accurate. Yet it appears that
    I cannot rely on the canWrite() since a false was returned. I wrote!!
    So confused ... need to be able to write to this folder on any computer...
    Help!!

  • Why can't I open read/write rules file?

    I have followed the Cookbook XML tutorial exactly as prescribed, even down to using all the examples from the 'Completed' folder, but when I try to perform any procedure such as generating a EDD or reading an XML instance (the ColorDoc.xml example) I get the following in the log file:
    Could not open the read/write rules file
    (App\ChapterReadWriteRules)
    Make sure you have read access to the file and that
    the file is not already in use.
    Using XP and Framemaker 7.
    Its a real blocker this proble. Have tries unsetting the XP Read-only folder property on all the folders in the heirarchy but XP won't let me do that. Very grateful if anyone could help me over this problem.

    What is the path you mentioned the structapps.fm file for read/write rules
    It should be full file path for read/write rules(including extension of file). Otherwise there is possibility of throwing the error you mentioned.
    Would it be possible to paste your XML application defined in your structapps.fm file??
    Thanks
    Basav

  • Xml token writer class

    Hi
    I have created an application that sends a request to XI web service for transferring data from source system to target system.
    The data gets tranferred when the size of data is average, however when large sized data is transferred, I get an error with the message ' xml token writer ' class definition not found.May you please provide the API that I should use to make this class available..
    Thanks in advance,
    Sudeep.

    Just to elaborate,
    I have created an application which accepts a user request for data transfer from a source system to target system viz. Primavera project planner and SAP project system.
    The application verifies the data on the source and target system before actually transferring data.The info is displayed to the user and only when the user clicks transfer button is the data transferred.
    When the data size is small,the transferred successfully.
    However , when data size is large, the application gives XML Token Writer Class not found exception.
    Is there any specific reason for this??
    Thanks in advance.

  • Can't open unlocked file I have read & write privileges for

    My nephew emailed me an RTF (created using iWork Pages on a Mac running 10.5.8). When I try to open it, I get "The document “x.rtf” could not be opened. You do not have appropriate access privileges."
    Get Info shows the file isn't locked, plus:
    You have custom access
    dp (Me)  Read & Write
    (unknown) Read only
    everyone Read only
    His parents use Parental Controls, so I thought I might be encountering an ACL problem. But the Terminal command "chmod -a# 0 x.rtf" yields "No ACL present".
    I tried changing the privileges for "everyone" to Read & Write but -- as I expected -- it makes no difference. (OSX won't let me change the privileges for "unknown.")
    For that matter, he attached 2 other files as well -- they behave the same ways.
    It's useless to try fixing the problem on his end unless I can provide his parents with super-simple step-by-step directions, so I'd prefer to fix it myself if possible, but I'm stumped as to what's wrong.

    According to http://www.freebsd.org/doc/handbook/permissions.html, in the case of directories, the execute bit controls whether they may be traversed. So it's normal for this bit to be set for a directory.
    To clarify where I'm at now: ls -l for the directory containing the file shows
    drwxrwxrwx   9 dp  dp         306 Jun 17 20:33 x.rtf
    and CDing to the file itself shows
    drwxrwxrwx  3 dp  dp    102 Jun 15 17:17 Contents
    -rw-rw-rw-  1 dp  dp  10156 Apr 17 22:45 H4835.jpg
    drwxrwxrwx  3 dp  dp    102 Jun 15 17:17 QuickLook
    -rw-rw-rw-  1 dp  dp   8363 Jun 15 17:17 imgres.jpg
    -rw-rw-rw-  1 dp  dp  31077 Jun 15 17:17 index.xml.gz
    -rw-rw-rw-  1 dp  dp  47231 Apr 17 19:01 macbookair.jpg
    -rw-rw-rw-  1 dp  dp  36191 Apr 17 21:14 unknown.jpg
    Get Info still says I have "custom access" to the RTF. Get Info for each file and directory (and their contents) it contains, however, says "You can read and write." I've searched the web and our KB but find very little about exactly what "custom access" means. As near as I can tell, it should mean it has an ACL, but as I reported earlier, that's apparently not so.

  • Read/Write Rules: Generic Identifiers & FM Tags

    I have seen this question answered in one of the dev guides but I cannot find it again.
    My question is whether it is legal within the read/write rules to refer various generic identifiers to the same FM tag/element.
    For instance:
    element "body" is fm element "Paragraph";
    element "preface" is fm element "Paragraph";
    Thanks!
    [moved to FM Structured forum]

    Does every structured fm document need a prior XML document?
    No. It depends upon the application. In my case, I create user manuals using structured FrameMaker. Our writing team created an EDD that does what we want and need it to do. We do not export or save the structured FrameMaker files as XML; however, we could if the need arose, for example, to create HTML versions for viewing in a browser. This application works for our needs.
    I have one application in which I begin with XML. When I create a parts catalog, the part information is exported from a database as XML. The structure of this XML file is determined by the database; it does not match the structure design in my EDD. But I use an XSL transform to convert the parts XML into a structure that is valid with respect to my EDD. Again, it depends upon your application.
    Some people DO export their structured FrameMaker files to XML. They may want to do something else with the content that requires its being in XML. Or they may use the XML for storage because XML files are smaller than FrameMaker files. Then when they open the XML files in FrameMaker, they are imported into a clean template, which cleans out any overrides and any junk that may have acummulated in the FrameMaker files.
    If your goal is to convert unstructured FrameMaker files into structured files, then I suggest concentrating on developing the EDD that works for your needs. Export to XML can come later if you need it.
    Van

  • XML read errors--failure to open dtd (DITA)

    Hi all,
    I've run out of ideas and places to look on this one, I hope someone can help.
    The specs: WinXP Pro, Frame 8.0p277. Built-in DITA. Not using DITA Open Toolkit. No major issues except for previously discussed conref problems which, many thanks to Scott, seem to be under control.
    The context: I'm a freelancer, on contract to a financial institution. I work part-time in my own office (up-to-date, preferred set-up) and part-time onsite. I can't go into detail, but the set-up is less than ideal. I have to do much back-and-forth portaging of project and template files, and they are often corrupted when I reopen them.
    Specs onsite I'm not sure about, but it's definitely Frame 8 with the first patch. I'm pretty sure they haven't installed any others, so the 8.03 patch shouldn't be an issue. (I'll check and report back, if that info is needed.)
    The error: Came out of the blue last week, my first day back in my office after three days onsite. Now, every time I open or create any xml file, using any template, I get an XML Read Report Log error that reports a failure to open the DTD, and a parse error in the document prolog. I don't know where it's coming from, and I don't know why it started happening. I modified structapps once, many months ago, but hadn't touched it since, and I've never touched the r/w rules files in either location.
    (I realize I should test this scenario onsite, but I daren't risk importing trouble, if it started here.)
    Specifically, the error reads: Could not open DTD file: C:\Documents and Settings\path-to-project-files-folder\ditabase.dtd Parse error at line 9, char 1: Error procssing external entity reference.
    I don't understand why it's looking for the dtd file in the same folder as the project files when I've never stored it there, and I have the following in the structapps, and r/w rules files.
    DTD: $STRUCTDIR\xml\dita\default-app\dtd\ditabase.dtd
    Read/write rules: $STRUCTDIR\xml\dita\default-app\DITA-Topic-FM\topic.rules.txt
    The R/W Rules statement reads: writer external dtd is public "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd";
    I can go completely cross-eyed after a few hours trying to parse these docs myself. The answer may well be right in front of me, but for the life of me I can't see it. I hope someone else can.
    Karen

    Hello Karen,
    Have you been able to resolve this issue? I'm encountering a similar issue while going through the FrameMaker 8 Help topics: Processing XML > Migration from Unstructured FrameMaker to XML > Getting started with structure.
    I have followed along with all the examples all the way down to the "Testing XML round-tripping" topic. When I go to the step: Export the FrameMaker file to XML, and select my XML application, I get a parsing error similar to what you had mentioned above.
    The Help topics have you first build an EDD for a simple document (proposal) - successful.
    They then have you open a new document and import the EDD - successful.
    They then have you add formatting to the EDD and then reimport into your document to test it. - successful
    They then have you build the structured app by saving the EDD to DTD. You are then supposed to create a template by removing all the content from your original file that they had you open and save it as a template. Then you are supposed to edit the application definition file. Finally you copy the template and the DTD to the Adobe FrameMaker 8 folder. - successful
    I've done this process twice and each time I get the same Save to XML Log error message when trying to export my document to XML.
    The first things that are displayed are the path the source and destination folders.
    Next is the XML parser error messages (Document Prolog).
    There are basically 2 parsing errors, line 3 and 9.
    line 3, "Could not open DTD file" C:\DOCUME~1\MICHAE~1\LOCALS~1\Temp\$STRUCTDIR\XML\Preface\Preface.dtd
    Error in processing external entity reference"
    line 9, "Could not open DTD file" C:/Documents%20and%20Settings/michael_randall/My%20Documents/FrameEDDTemplatePractice/$ST RUCTDIR/XML/Preface/Preface.dtd
    Error in processing external entity reference"
    Please let me know if have any new information.
    Thanks,
    Michael Randall

  • JAX-RPC deserialization error: unexpected XML reader state

    Guys,
    Trying to write a Jax-Rpc client that consumes a web service hosted on WebLogic 7.1 talking soap 1.1. I can bind to that service using Apache SOAP - so I don't think that service is returning invalid XML.
    Is there something in my client's classpath that's old or not compatible ?
    Getting the following exception
    java.rmi.RemoteException: Runtime exception; nested exception is:
    deserialization error: unexpected XML reader state. expected: END but found: START: stockSymb
    ol
    deserialization error: unexpected XML reader state. expected: END but found: START: stockSymbol
    at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:209)
    at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerIm
    pl.java:115)
    at trader.TraderServicePort_buy_ResponseStruct_SOAPSerializer.doDeserialize(TraderServicePort
    buyResponseStruct_SOAPSerializer.java:37)
    at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:165)
    at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerIm
    pl.java:115)
    at trader.TraderServicePort_Stub._deserialize_buy(TraderServicePort_Stub.java:180)
    at trader.TraderServicePort_Stub._readFirstBodyElement(TraderServicePort_Stub.java:153)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:168)
    at trader.TraderServicePort_Stub.buy(TraderServicePort_Stub.java:115)
    at portal.jsp._portal._test.__TestJaxrpc._jspService(__TestJaxrpc.java:83)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:945)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:909)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:2
    69)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:130)
    CAUSE:
    unexpected XML reader state. expected: END but found: START: stockSymbol
    at com.sun.xml.rpc.streaming.XMLReaderUtil.verifyReaderState(XMLReaderUtil.java:49)
    at trader.TradeResult_SOAPSerializer.doDeserialize(TradeResult_SOAPSerializer.java:66)
    at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:165)
    at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerIm
    pl.java:115)
    at trader.TraderServicePort_buy_ResponseStruct_SOAPSerializer.doDeserialize(TraderServicePort
    buyResponseStruct_SOAPSerializer.java:37)
    at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:165)
    at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerIm
    pl.java:115)
    at trader.TraderServicePort_Stub._deserialize_buy(TraderServicePort_Stub.java:180)
    at trader.TraderServicePort_Stub._readFirstBodyElement(TraderServicePort_Stub.java:153)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:168)
    at trader.TraderServicePort_Stub.buy(TraderServicePort_Stub.java:115)
    at portal.jsp._portal._test.__TestJaxrpc._jspService(__TestJaxrpc.java:83)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:945)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:909)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:2
    69)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:130)
    Thanks
    Atish

    Using WSDP 1.1 this can be fixed IF you're using a static stub to access the service by running wscompile with the -f:searchschema option when generating the client stubs. It will then search the schema aggressively for subtypes when generating the stubs and your client will function correctly. The downside is that this ties your client down to using implementation specific functionality that is not part of the standard, which IMHO is very bad but if you're happy to live with this then it will work.
    Therefore I want to use a dynamic proxy client. For this you don't need to use the wscompile tool to generate client stubs and therefore the above fix doesn't work. I have searched the API documentation for some method that would have the same effect but thus far to no avail. Does anybody have any ideas?
    On a side note I have to say I'm fairly unhappy that in the entire 900 page web services tutorial no mention is made of how to utilise inheritance for parameter and return types without running into problems, neither is any mention made of support for / lack of support for polymorphism which also seems to cause problems. Forgive my sarcasm and lack of grace but, "What, is it 1975 already?" In this day and age I DO expect to be able to use these things without having to specify obscure compiler options, or indeed worry about them in any way whatsoever.

Maybe you are looking for

  • How can I import my bookmarks and RSS feeds from Flock?

    I just switched over from Flock because it's too sluggish to use anymore. How do I import all my bookmarks, passwords, and RSS feeds? If I have to do it all by hand, I'm going to cry. Also do I need a separate RSS reader to get my feeds in a nice lis

  • How do I determine what the problem is?

    In converting a word doc to pdf. the program runs for over 10 minutes or more then a note comes up saying a problem occurred that stopped conversion.  How do I determine the problem?

  • Query on Service Order Reports

    Hi, Need to take report based on Months for the Open Service Orders Quantity Actual Cost Value of Open Service Orders (Local Currency) Actual Billable Cost Value of Open Service Orders (Local Currency) Month to Date Revenue Month to Date Margin Quant

  • Another question about smart playlists

    Hi, I have been experimenting a lot with smart playlists lately and have 3 now that I have set up with help from this forum so far. However, I have a question I don't see an obvious answer to. That is, I have every song in at least one playlist, and

  • SRM supports SOAP 1.2? Very urgent

    Hi!! Do you know if SRM supports SOAP 1.2? If not, exists any support package to SRM supports it? Helpful answers will be rewarded. Thanks in advance and regards, Manuel.