MMDocumentTypes.xml again!!

Hello everyone. I know there is a post out there regarding this issue, but it is old and not helpful in my case. I recently purchased a new imac 27" with OS X 10.8.4. and I can no longer use my Dreamweaver. Whenever I try and open it I receive the error:
"No document types have been found in the Configuration/DocumentTypes/ folder. The MMDocumentTypes.xml file may be missing or corrupted. The application will exit now."
I read in the forums that you have to change the extension manually to solve the problem, however, I don't even have a DocumentTypes folder in my library. There is nothing for me to change. I certainly do not have the "MMDocumentTypes.xml" file. I would appreciate any help you can provide. Thanks all!

On a Mac, MMDocumentTypes.xml is located in ~username/Library/Application Support/Adobe/Dreamweaver CS6/en_us/Configuration/DocumentTypes

Similar Messages

  • Moving .html to .asp_vb in MMDocumentTypes.xml causes DW to stop responding.

    I have edited the MMDocumentTypes.xml in C:\Users\<user name>\AppData\Roaming\Adobe\Dreamweaver CS5.5\en_US\Configuration\DocumentTypes file to move the .html and .htm extensions to the asp_vb section because I process .html as .asp.
    This is the only change made to configuation files.  If I remove the configuration folder and allow DW to recreate it, all is right with the world.
    I am running Windows 7 64bit and CS 5.5 Master Collection.
    Any ideas on why this happens and how to fixed will earn my undieing gratitude.
    Thanks

    Good to know,
    I fixed the problem but I'm not exactly sure why this worked. I went to a different site that uses Youtube hosted videos and tried their embed code which appeared the same to my untrained eye. But to my surprise this other video worked perfectly, so I just put the url for my video in and it worked. I'm not sure why, as far as I can tell both embed codes are the same. Both use <iframe> tags. But it works now, suffice to say I've gained some respect for the people who do this stuff day to day.

  • Can't open .tpl or edit MMDocumentTypes.xml to allow the .tpl extension

    I've been searching for a while on how I can open a .tpl file on Dreamweaver MX. The one thing I keep finding is to open up MMDocumentTypes.xml and include tpl in the first line after winfileextension. However, when I go to save after I have done this I get a message saying that I am not allowed to. Is there another way to edit .tpl files with (or without) dreamweaver? Am I doing something wrong or maybe have to obtain permission to edit the file somehow? Any help is greatly appreciated.
    Lauren

    AFAIK: DW doesn't use or recognize TPL file types.
    Not sure what you're trying to accomplish, but possibly you can open the TPL file in a plain text editor such as  NoteTab light or NotePad pro.
    Related discussion on TPL files in DW
    http://gallery.menalto.com/node/19561
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • DW CS6 Crash On Startup, MMDocumentTypes.XML problem

    On Dreamweaver CS6 which I just installed today, I keep getting the following error on startup,
    "No document types have been found in the Configuration/DocumentTypes/ folder. The MMDocumentTypes.xml may be missing or corrupted. The application will exit now.
    I've tried the cache deletion method found in the FAQ thread for crashes on startup with no success as well as reinstalling Dreamweaver once. I'm on Windows 7 64 bit. Any help would be appreciated, thanks!

    I just revisiting my problem today by doing yet another uninstall then reinstall. I think the issue I had was in the configuration files (although I'm not sure why it happened) as the second time I uninstalled, I made sure to tell the uninstaller to delete User Preferences Data or something of that sort (it's the checkbox over on the right when you choose what to uninstall out of the suite. Try uninstalling with that checked and then reinstall againm, worked for me.

  • Dreamweaver Error on Load - MMdocumenttypes.xml wont open/missing

    Hi,
    I just purchased and installed Dreamweaver cs5.5 student and teacher edition for a PC. When I open the program, I receive an error message:
    "No document types have been found in the Configuartion/DocumentTypes/ folder. The MMdocumenttypes.xml file may be missing or corrupt."
    I have uninstalled/reinstalled the program, which did not change the problem. How can I get Dreamweaver running properly? The MMdocumenttypes.xml is located in the C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5\configuration\DocumentTypes Folder, it is not missing, and shouldn't be corrupt as I just installed the program.

    the user prefs data for dw is in I think may be in 2 files in dw's configuration folder (not in %appdata% but in %PROGRAMFILES%) or maybe that was the cache that might need to be zapped.
    rather than lose the whole shebang, I think you could simply drop the userprefs in the config folder.
    I think a check in the registry under HKCU\Software\Adobe and HKLM\Software\Adobe would also be in order, as there are settings in there too (sites are stored there, so in case you want to back up some or all those settings at once you can export the registry key).
    I would like to apply some intelligence to the process by only doing what's necessary manually. right now I had to uninstall cs5, and I am hoping I can reinstall and put my files back in and see what happens, so right now I cannot give file location specifics, you would have to do your own digging. but I suspect that due to a bug in the installer (there is a lot of little stuff to catch...), I won't be able to reinstall without wiping the disk and reinstalling windows from scratch like many times before - residuals being the reason and somehow the installer sees that and goes haywire.
    I am going to have to use those manual steps if this is indeed the answer.

  • 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.

  • "cannot open...required .xml" again

    Has anyone been able to open a pages file that has the cannot open .xml required error?
    I opened a doc from pages'08 in pages'09 made some crucial changes saved as new name and cannot open it again now.
    I tried opening in '08 and of course no luck.
    I just finished 3 hours of writing and cannot do that again!!!
    Thanx for any help.
    Jean-Michel

    CG_AUDIO wrote:
    Has anyone been able to open a pages file that has the cannot open .xml required error?
    I opened a doc from pages'08 in pages'09 made some crucial changes saved as new name and cannot open it again now.
    I tried opening in '08 and of course no luck.
    I just finished 3 hours of writing and cannot do that again!!!
    3 hours of writing without no intermediate save in different files is silly.
    Attach the file to a mail
    send them to my maibox.
    I will try to revive the raw text.
    Click my blue name to get my address.
    IMPORTANT: search for the keystring _"backup, backup"_ in existing threads !
    Yvan KOENIG (VALLAURIS, France.) jeudi 20 août 2009 20:09:19

  • Updating xml ( again...)

    I know that there are zillions post about this but I got a bit confused...
    My problem is, I need to change a node value and write back to the xml file.
    I used this code to save the changes back in the file:
    TransformerFactory xformFactory  = TransformerFactory.newInstance();
    Transformer transformer = xformFactory.newTransformer();
    Source input = new DOMSource(doc.getDocumentElement());
    Result output = new StreamResult(new FileOutputStream("myfile.xml"));transformer.transform(input, output);and all worked well but it seems that all the xml were re-written!
    There's a way to update only the node value without rewritting the whole file?
    Thanks

    You do have to erase the old file and create a new file, if that was your question. It is a text file, after all.

  • I need to know how to import xml files into indesign cs6.

    My client wants to send me xml text files to import into Indesign for a multi-page publication. I don't have a clue where to start. Can you point me to a tutorial that would help me figure this out?
    I have a sample file that looks like this:
    <?xml version="1.0"?>
    <providers>
      <provider>
        <name>Bow Valley College</name>
        <description>Putting the Community back in college&#x2026;in the Bow Corrid
    ANY TIME, ANY PLACE, ANY PATH, ANY PACE LEARNING.
    Designated as the comprehensive community college for Calgary &amp; its
    surrounding region, Bow Valley College offers you learning opportunities
    through flexible delivery options, including classrooms, online or self
    paced modules. Whether you are taking a course for interest, to enhance
    your career skills or to finish high school you have access to all of the
    traditional Bow Valley College student supports.
    Visit our website [2] or come see us at our Canmore campus.
    BOW VALLEY LEARNING COUNCIL MEMBER.
    Links:
    [1] http://www.bowvalleycollege.ca/bow-corridor.html
    </description>
        <contact_information>Canmore Campus
    Provincial Building, 800 Railway Ave.
    Canmore, AB&#xA0; T1W 1P1
    OFFICE HOURS: 8:30am - 4:30pm, Monday - Friday (except from 12 - 1pm)
    PHONE: (403) 678-3125
    FAX: (403) 678-3127
    BANFF CAMPUS: Lower Level, Banff YWCA, 102 Spray Ave., Banff (ONLY OPEN
    WHEN COURSES OFFERED).&#xA0;</contact_information>
        <email>[email protected]</email>
        <website>www.bowvalleycollege.ca/bow-corridor</website>
        <registration_information>Cancellation policy: Once your course has begun no refunds or credits will
    be given. Compassionate grounds may be considered with official
    documentation. There are no refunds, transfers, or credits if you cancel
    within one week of the course start date.
    BY PHONE: (403) 678-3125. Payment by Visa or Mastercard
    IN PERSON: Canmore Campus, Provincial Building, 800 Railway Ave., Canmore.
    Payment by cash, Visa or Mastercard.
    &#xA0;
    FUNDING ASSISTANCE&#xA0;MAY BE AVAILABLE FOR THOSE ON A LOW INCOME ON SOME
    COURSES. PLEASE ASK FOR MORE INFORMATION.</registration_information>
        <courses>
          <course>
            <title>Computer Basics/Windows 7 - Instructor led, Canmore</title>
            <description>An instructor will lead the class through the basic features of Microsoft
    Windows, the Internet and Email. Find out how to start programs, create,
    save and organize your files and use the online help feature. You&#x2019;ll also
    get an introduction to surfing the internet and setting up an email
    account. This course is designed for those with little or no computer
    experience &#x2013; and is still our most popular course. 18 HR COURSE.</description>
            <schedule_entries>
              <entry>
                <date>Mon 6:30 - 9 pm, Oct 7 - Dec 2</date>
                <date>Thu 6:30 - 9 pm, Oct 10 - Dec 5</date>
              </entry>
            </schedule_entries>
          </course>
          <course>
            <title>Word 2010 Introduction - Self-paced</title>
            <description>Explore the basics of Microsoft Word to produce professional letters and
    documents. This course guides you through the effective use of the Word
    Ribbon and Quick Access Toolbar. You&#x2019;ll learn how to efficiently edit,
    move and copy text; manipulate fonts; apply bullets and numbering; borders
    and shading; insert and re-size Clip Art; enter headers and footers; insert
    page numbers; set alignment and indents; and change page settings. You&#x2019;ll
    learn to use the AutoCorrect feature and finish documents using the
    spelling, thesaurus and grammar features.
    Self-paced, 18 hr course.
    Prerequisite recommended: Computer Basics or equivalent experience.</description>
            <schedule_entries>
              <entry>
                <date>Mon 7:30 - 9 pm, Oct 7</date>
                <date>Thu 7:30 - 9 pm, Dec 5</date>
              </entry>
            </schedule_entries>
          </course>
          <course>
    AND SO ON...FOR 64 PAGES WORTH OF CONTENT
    HELP!!!
    SGAREN

    Hello Sally,
    First, I have only heard/read good things about the book Steve recommends. It is on my to buy list one day. Been awaiting a long deserved vaction to pick it up to read.
    I approach XML files pretty much like I do any text file I am sent in that I will import or copy/paste a text file into a frame in ID and begin setting my styles. With XML, though, I first clean it up, move closing tags up to their logical close lines, remove spurious codes that mean something in HTML but don't necessarily belong in the XML file (like &#x2019 which is an apostrophe so I do a search and replace. But for &#xA0; which is a non-breaking space I simply search and replace with a regular space in general), and make sure the XML validates.
    Validation is much like making sure an HTML page is formed properly. I use an XML editor (XML BluePrint) and a text editor (UltraEdit) for these tasks. If I had to only have one or the other, I suppose the XML editor is what I would use.
    I always show the import options when I import the XML and make sure that I link to the file.
    So once a sample of the XML is on a page in ID (via File | Import XML), I highlight text within a tag, say like in your example above, the Providor name, and make it like I want and then create a new style. I generally name the styles as per the XML tag. Later on, that makes mapping tags to styles a little easier.
    Once I set up all the styles preliminarily, I map the tags to styles. You can do that either via the Tags palette or via the Structure Pane that will appear once the XML is imported. In both cases, it is found via the flyout menu at the top right of their respective windows.
    After mapping my styles to the tags, I select the root element in the Structure Pane (the topmost element. In your sample above it is "providors" and delete it. This removes the XML in your ID file. But the styles and tags are still present.
    Then I import the XML again and look to makes sure all the tags/elements are styled as intended. I then correct any errors/ommissions. Then...I'll delete the XML again and import the full XML file.
    I can upload what I did with your XML sample above so you can compare it to your source file if you would like. You would then see how/where I moved tags. Now, moving the tags is only "necessary" to avoid all the extra blank paragraphs. That can be accomplished by ID's search/replace, too. But I like to start out with the XML cleaned up, so I take the few minutes to do it.
    Take care, Mike

  • When to use unattend.xml in task sequence - best practice?

    Hi, I've tried researching this but not found an answer to my specific query.
    We have ConfigMgr 2012 R2 with MDT 2013 although I don't think this is an MDT specific question.
    I'm trying to create a Build and Capture task sequence for our Windows Server 2008 R2 and Server 2012 /2012R2 server builds utilising an UNATTEND.XML file to make some customisations that can be deployed for every build afterwards in a Deployment Task Sequence.
    Specifically the addition of some Windows Features like SNMP and it's configuration and the addition of the Telnet Client. There are other bits like language settings and configuration items but I'm specifically interested in the Features part for my question.
    In CM 2012R2 you now have the option under the "Apply Operating System" to use a captured image or an original installation source. However they work differently if you specify the use of the same unattended answer file.
    The "image" deployment ignores all of the "add features" sections of the XML file and the "installation source" loses the  configuration options from SNMP from the XML file. When you then deploy the captured image using
    the same unattend.xml again the one from the "installer" now has all the SNMP features required and the one from the "image" is still missing everything.
    So my question is as follows.
    What is best practice for specifying an unattend.xml file in a task sequence. Is it in the build and capture TS or in the Deployment TS ?
    or
    Do I need multiple XML files, one for build and capture with some bits in and another for deployment with the rest in?
    or
    Should I be doing something else?
    Although this is specifically asking about Server O/S we will be using the same methodology for Windows 7 deployment.

    In this case DISM is only used to add the actual features... for configuration you could use a simple script that runs afterwards. Sample registry file:
    SAMPLE REG FILE - HKLM-SNMP.reg
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters]
    "NameResolutionRetries"=dword:00000010
    "EnableAuthenticationTraps"=dword:00000001
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\PermittedManagers]
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\RFC1156Agent]
    "sysServices"=dword:0000004f
    "sysLocation"=""
    "sysContact"=""
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\TrapConfiguration]
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\TrapConfiguration\public]
    "1"="127.0.0.1"
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\ValidCommunities]
    "public"=dword:00000004
    Sample batch file:
    SAMPLE SCRIPT FILE - ConfigureSNMPService.bat
    @ECHO OFF
    net stop "SNMP Service"
    regedit /s HKLM-SNMP.reg
    net start "SNMP Service"
    Also some settings for SNMP can be controlled through group policy:
    http://serverfault.com/questions/285762/group-policy-for-multiple-snmp-permitted-managers

  • Converting string xml to xsd format ?

    Hi,
    my web service receives a xml as an input in string format.
    it is passed to other web services for processing purpose.
    during execution of each web service, I need to extract some node values multiple times which causes performance overhead.
    can I convert the input xml (as string) into xsd structure (similar to OTD) so that I can simply map it while passing it to other web services? it should save me unnecessary extraction of same nodes in other web services.
    how to do it?
    is there any better approach for this?
    suraj

    Within the JBI environment, the XML message is typically passed around as a DOM Document (wrapped as a TRAX DOMSource), so the document is parsed only once. This should be very quick, even when evaluating XPath functions to find parts of the document repeatedly. DOM and OTD aren't that dissimilar, so you should be comfortable with it.
    When sending the XML message "across the wire", you are forced to serialize to XML again. This is the foundation of interoperability and loose coupling.
    Sometimes converting the XML to a more convenient form (different schema) can help make it easier/quicker to run queries against.

  • XML Parsing attributes with encoded ampersand causes wrong order

    Hi all,
    I am writing in the forum first (because it could be that i am doing something wrong.... but i think it is a bug. Nonetheless, i thought i'd write my problem up here first.
    I am using Java 6, and this has been reproduced on both windows and linux.
    java version "1.6.0_03"
    Problem:
    read XML file into org.w3c.dom.Document.
    XML File has some attributes which contain ampersand. These are escaped as (i think) is prescribed by the rule of XML. For example:
    <?xml version="1.0" encoding="UTF-8"?>
         <lang>
              <text dna="8233" ro="chisturi de plex coroid (&gt;=1.5 mm)" it="Cisti del plesso corioideo(&gt;=1.5mm)" tr="Koro&#305;d pleksus kisti (&gt;=1.5 mm)" pt_br="Cisto do plexo cor&oacute;ide (&gt;=1,5 mm)" de="Choroidplexus Zyste (&gt;=1,5 mm)" el="&Kappa;&#973;&sigma;&tau;&epsilon;&iota;&sigmaf; &chi;&omicron;&rho;&omicron;&epsilon;&iota;&delta;&omicron;&#973;&sigmaf; &pi;&lambda;&#941;&gamma;&mu;&alpha;&tau;&omicron;&sigmaf; (&gt;= 1.5 mm)" zh_cn="&#33033;&#32476;&#33180;&#22218;&#32959;&#65288;&gt;= 1.5 mm&#65289;" pt="Quisto do plexo coroideu (&gt;=1,5 mm)" bg="&#1050;&#1080;&#1089;&#1090;&#1072; &#1085;&#1072; &#1093;&#1086;&#1088;&#1080;&#1086;&#1080;&#1076;&#1085;&#1080;&#1103; &#1087;&#1083;&#1077;&#1082;&#1089;&#1091;&#1089; (&gt;= 1.5 mm)" fr="Kystes du plexus choroide (&gt;= 1,5 mm)" en="Choroid plexus cysts (&gt;=1.5 mm)" ru="&#1082;&#1080;&#1089;&#1090;&#1099; &#1089;&#1086;&#1089;&#1091;&#1076;&#1080;&#1089;&#1090;&#1099;&#1093; &#1089;&#1087;&#1083;&#1077;&#1090;&#1077;&#1085;&#1080;&#1081; (&gt;=1.5 mm)" es="Quiste del plexo coroideo (&gt;=1.5 mm)" ja="&#33032;&#32097;&#33180;&#22178;&#32990;&#65288;&gt;=1.5mm&#65289;" nl="Plexus choroidus cyste (&gt;= 1,5 mm)" />
    </lang>As you might understand, we need to have the fixed text '>' for later processing. (not the greater than symbol '>' but the escaped version of it).
    Therefore, I escape the ampersand (encode?) and leave the rest of the text as is. And so my > becomes >
    All ok?
    Symptom:
    in fetching attributes, for example by the getAttribute("en") type call, the wrong attribute values are fetched.
    Not only that, if i only read to Document instance, and write back to file, the attributes are shown mixed up.
    eg:
    dna: 8233, ro=chisturi de plex coroid (>=1.5 mm), en=&#1082;&#1080;&#1089;&#1090;&#1099; &#1089;&#1086;&#1089;&#1091;&#1076;&#1080;&#1089;&#1090;&#1099;&#1093; &#1089;&#1087;&#1083;&#1077;&#1090;&#1077;&#1085;&#1080;&#1081; (>=1, de=Choroidplexus Zyste (>=1,5 mm)Here you can see that 'en' is shown holding what looks like greek, ... (what is ru as a country-code anyway?) where it should have obviously had the english text that originally was associated with the attribute 'en'
    This seems very strange and unexpected to me. I would have thought that in escaping (encoding) the ampersand, i have fulfilled all requirements of me, and that should be that.
    There is also no error that seems to occur.... we simply get the wrong order when fetching attributes.
    Am I doing something wrong? Or is this a bug that should be submitted?
    Kind Regards, and thanks to all responders/readers.
    Sean
    p.s. previously I had not been escaping the ampersand. This meant that I lost my ampersand in fetching attributes, AND the attribute order was ALSO WRONG!
    In fact, the wrong order was what led me to read about how to correctly encode ampersand at all. I had been hoping that correctly encoding would fix the order problem, but it didn't.
    Edited by: svaens on Mar 31, 2008 6:21 AM

    Hi kdgregory ,
    Firstly, sorry if there has been a misunderstanding on my part. If i did not reply to the question you raised, I appologise.
    In this 'reply' I hope not to risk further misunderstanding, and have simply given the most basic example which will cause the problem I am talking about, as well as short instructions on what XML to remove to make the problem disappear.
    Secondly, as this page seems to be displayed in ISO 8859-1, this is the reason the xml I have posted looks garbled. The xml is UTF-8. I have provided a link to the example xml file for the sample below
    [example xml file UTF-8|http://sean.freeshell.org/java/less2.xml]
    As for your most recent questions:
    Is it specified as an entity? To my knowledge (so far as my understanding of what an entity is) , yes, I am including entities in my xml. In my below example, the entities are the code for the greater than symbol. I am under the understanding that this is allowed in XML ??
    Is it an actual literal character (0xA0)? No, I am specifying 'greater than' entity (code?) in order to include the actual symbol in the end result. I am encoding it in form 'ampersand', 'g character', 't character', 'colon' in order for it to work, according to information I have read on various web pages. A quick google search will show you where I got such information from, example website: https://studio.tellme.com/general/xmlprimer.html
    Here is my sample program. It is longer than the one you kindly provided only because it prints out all attributes of the element it looks for. To use it, only change the name of the file it loads.
    I have given the xml code seperately so it can be easily copied and saved to file.
    Results you can expect from running this small test example?
    1. a mixed up list of attributes where attribute node name no longer matches its assigned attribute values (not for all attributes, but some).
    2. removing the attribute bg from the 'text' element will reduce most of these symptoms, but not all. Removing another attribute from the element will most likely make the end result look normal again.
    3. No exception is thrown by the presence of non xml characters.
    IMPORTANT!!! I have only just (unfortunately) noticed what this page does to my unicode characters... all the the international characters get turned into funny codes when previewed and viewed on this page.
    Whereas the only codes I am explicitly including in this XML is the greater than symbol. The rest were international characters.
    Perhaps that is the problem?
    Perhaps there is an international characters problem?
    I am quite sure that these characters are all UTF-8 because when I open up this xml file in firefox, It displays correctly, and in checking the character encoding, firefox reports UTF-8.
    In order to provide an un-garbled xml file, I will provide it at this link:
    link to xml file: [http://sean.freeshell.org/java/less2.xml]
    Again, sorry for any hassle and/or delay with my reply, or poor reply. I did not mean to waste anyones time.
    It will be appreciated however if an answer can be found for this problem. Chiefly,
    1. Is this a bug?
    2. Is the XML correct? (if not, then all those websites i've been reading are giving false information? )
    Kindest Regards,
    Sean
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    public class Example
        public static void main(String[] argv)
              try
                   FileInputStream fis = new FileInputStream("/home/sean/Desktop/chris/less2.xml");
                 Document doc = DocumentBuilderFactory.newInstance()
                 .newDocumentBuilder()
                 .parse(new InputSource(fis));
                   Element root = doc.getDocumentElement();
                   NodeList textnodes = root.getElementsByTagName("text");
                   int len = textnodes.getLength();
                   int index = 0;
                   int attindex = 0;
                   int attrlen = 0;
                   NamedNodeMap attrs = null;
                   while (index<len)
                        Element te = (Element)textnodes.item(index);
                        attrs = te.getAttributes();
                        attrlen = attrs.getLength();
                        attindex = 0;
                        Node node = null;
                        while (attindex<attrlen)
                             node = attrs.item(attindex);          
                             System.out.println("attr: "+node.getNodeName()+ " is shown holding value: " + node.getNodeValue());
                             attindex++;                         
                        index++;
                        System.out.println("-------------");
                 fis.close();
              catch(Exception e)
                   System.out.println("we've had an exception, type "+ e);
    }  [example xml file|http://sean.freeshell.org/java/less2.xml]
    FOR THE XML, Please see link above, as it is UTF-8, and this page is not. Edited by: svaens on Apr 7, 2008 7:03 AM
    Edited by: svaens on Apr 7, 2008 7:23 AM
    Edited by: svaens on Apr 7, 2008 7:37 AM
    Edited by: svaens on Apr 7, 2008 7:41 AM

  • Create offline interactive forms using webdynpro java with XML data source

    Hi Gurus,
    I am having a scenario like below:
    Sales guy request for order list online from portal- Sytem receives the request and creat XML file- from xml file need to create a Offline interactive form-Sales guy fills it offline at customer site- uploads in portal -on submit xml has to be generated with captured data at customer site-Process to  ECC.
    So my questions are:
    How to create the offline interactive form  from XML?
    Once filled offline interactive form uploaded into portal how to create XML again from pdf ?
    Please give some idea on this as this is my first Offline interactive form using XML datasource.
    Thanks
    Ravi
    Edited by: Ravi Sunkara on Jul 27, 2010 5:25 PM

    Hi Otto,
    Sorry for replying lately. First of all  I did not get your suggestions as your are editing the same posting.
    Secondly we will be using WDJ. Actually in between SAP Portal and ECC we are having adobe LCES so we need to create Interactive form using XML only. Once it is filled again the form will be submitted to another application which is running on FLEX, which will process the order.
    if you can give me your personal id i can send you the detailed process
    Thanks
    Ravi

  • Problem with XML configuration

    Hello gurus!
    I have a problem because I'm trying to get a value from the WF container to expose it through SWFVISU as a dynamic parameter. The way I tried to do this was to manipulate the UWL XML to create a custom attribute and declaring the value comes from the container, but since I modified this, anything in SWFVISU is not responding. Even if I delete the pcd of some task and then call this task, everything works normally and no changes are noticed. Somebody told me that I have to return to my original XML configuration and I deleted my new XML configuration, cleared cache and the problem persists. Any ideas on what am I missing about this?
    Regards IA

    Hi,
    >but since I modified this, anything in SWFVISU is not responding.
    What do you mean by this? Are you expecting that the changes you do in your XML would somehow appear in SWFVISU? (This will not happen.)
    Please upload the custom XML again to the portal (with priority medium or high). Refresh the cache, and log out from the portal. Log in again, and create new test case (=start new workflow). These are all just steps to ensure that the changes you have done to the XML will apply.
    What is the result? Is the custom attribute working? If it is not, I would check any examples that you can find in SAP Help or SDN about dynamic attributes, and compare them to your own XML. If you still cannot find the problem, post your XML task configuration here (and explain what you are trying to achieve), and probably someone will help you.
    Regards,
    Karri

  • Writind Data to XML in XML Format

    Hi,
    This is my First post in Sun Forums.
    I m learning XML writing in Java.
    I have searched on the Net but unable to find the proper XML writing Method using any API.
    Please provide code for writing the XML in correct format with useful API.?
    i m giving the Scenario of XML here:-
    <?xml version="1.0" encoding="UTF-8"?>
    <Data>
    <Description>Description Addes</Description>
    <Details>Details Added</Details>
    </Data>
    I want to Write this Data Using the Java using any API.
    Also I want to append the Data while i m executing the XML for second time.
    <?xml version="1.0" encoding="UTF-8"?>
    <Data>
    <Description>Description Addes</Description>
    <Details>Details Added</Details>
    </Data>
    <Data>
    <NewDescription>NewDescription Addes</NewDescription>
    <NewDetails>NewDetails Added</NewDetails>
    </Data>
    I have also made 1 application using dom4j which write data to XML file but while i m appending the Data
    for the Second time in the XML the same line repeatd <?xml version="1.0" encoding="UTF-8"?> in the XML.
    So please guide me how to remove or delete this line while i m going for writing the XML again or Appending the Data Again..
    Please provide some code or good Links or Solution for my Problem for writing the Simple XML format file and Appending the Data to the Same XML without including the <?xml version="1.0" encoding="UTF-8"?> this line
    Again ?
    ?.

    Hi,
    I have Attached my Whole code in which the Same Line <?xml version="1.0" encoding="UTF-8"?> is appended while i m running this code second ,third ,fourth....n..times...
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import org.dom4j.Document;
    import org.dom4j.DocumentHelper;
    import org.dom4j.Element;
    import org.dom4j.io.XMLWriter;
    import org.dom4j.io.OutputFormat;
    import java.io.*;
    public class XMLWriting {
    FileWriter out;
    int i=1;
    OutputFormat outformat;
    XMLWriter writer;
    public XMLWriting() {
    public static void main(String s[]) {
    System.out.println("In the Main Method::");
    XMLWriting onj = new XMLWriting();
    onj.createDocument();
    System.out.println("In the Main Method::111111111111");
    public void createDocument() {
    try {
    System.out.println("In the Main Method::22222222222");
    out = new FileWriter("D:/foo3",true);
    } catch (IOException ex) {
    //Logger.getLogger(XMLWriting.class.getName()).log(Level.SEVERE, null, ex);
    System.out.println("Exception Is in the CreateDocument Is::"+ex.getMessage());
    Document document =DocumentHelper.createDocument();
    Element root = document.addElement("root");
    String Data="Data";
    //Element testNode = root.addElement("Description");
    Element author1 = root.addElement("Description").addText(Data);
    Element author2 = root.addElement("Data").addText(" nimesh");
    Element author3 = root.addElement("XMl").addText("Jignesh");
    try {
    //OutputFormat outformat =OutputFormat.createCompactFormat();
    outformat = OutputFormat.createPrettyPrint();
    writer= new XMLWriter(out,outformat);
    writer.write(document);
    writer.close();
    } catch (Exception e) {
    System.out.println("Exception Is ::"+e.getMessage());
    e.printStackTrace();
    OutPut after Executing Two Time:-
    <?xml version="1.0" encoding="UTF-8"?>//same line appended twice
    <root>
    <Description>Data</Description>
    <Data>nimesh</Data>
    <XMl>Jignesh</XMl>
    </root>
    <?xml version="1.0" encoding="UTF-8"?>//same line appended twice
    <root>
    <NewDescription>NewData</NewDescription>
    <NewData>Newnimesh</NewData>
    <NewXMl>NewJignesh</NewXMl>
    </root>
    Please help me out in this ....If any modification is needed then correct my mistake and reply me with modified code ...I want this type of OutPut without Appending the <?xml version="1.0" encoding="UTF-8"?> this line in the XML file....
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <Description>Data</Description>
    <Data>nimesh</Data>
    <XMl>Jignesh</XMl>
    </root>
    <root>
    <NewDescription>NewData</NewDescription>
    <NewData>Newnimesh</NewData>
    <NewXMl>NewJignesh</NewXMl>
    </root>

Maybe you are looking for

  • HP Laserjet 6L not recognised under Mavericks when connected via USB

    Hi there, am desperately trying to connect my good old Laserjet 6L via USB port to my iMac that's running on Mavericks. The issue I have is that the printer does not even get recognised when unplugging / plugging the USB cable. Have tried different U

  • [HELP] iPhone 5 KEEPS REBOOTING!

    Hi guys, I have my iPhone 5 in February this year, but now it kept rebooting since last week. I have my phone restored to the newest OS and even set it as a new phone. But the problem still is there. And I checked the real-time system Log generated f

  • OAUG Responds to Oracle Proposal

    An Open Letter to Mark Jarvis and Ron Wohl Mark, Ron Thank you for setting out your proposal to the OAUG on AppsNet. It was useful to see it in writing, although, as you mentioned, it is largely similar to what was proposed and presented to our membe

  • Compiling kernel 2.6.7

    I'm compiling my kernel for additioanl support. However, I'm missing something. What selections should I choose to enable the Fn+F1 Fn+F2 on my keyboard to control the brightness. When I do a clean install of archlinux, they work automatically and ve

  • Scope and Career in Solaris OS 10

    Hi, My company is giving me a project (OMC or department) wherein I am to work on Solaris OS. However, my company is going to provide me with the training of Administration and Treoubleshooting of Solaris OS 10 (Technically the training would be at L