JSP 1.2 well formed JSP

I want to move to well formed JSP pages using an XML editor.
          I cannot find a DTD for this, the one posted at
          http://java.sun.com/dtd is not valid.
          Has anyone started using JSP 1.2 with WLS 6.1?
          Thanks
          Rob
          

Poke around inside the weblogic.jar (etc.) file ... there is undoubtably a
          DTD distributed with Weblogic.
          Peace,
          Cameron Purdy
          Tangosol Inc.
          << Tangosol Server: How Weblogic applications are customized >>
          << Download now from http://www.tangosol.com/download.jsp >>
          "Rob Raymond" <[email protected]> wrote in message
          news:[email protected]..
          > I want to move to well formed JSP pages using an XML editor.
          >
          > I cannot find a DTD for this, the one posted at
          > http://java.sun.com/dtd is not valid.
          >
          > Has anyone started using JSP 1.2 with WLS 6.1?
          >
          > Thanks
          > Rob
          

Similar Messages

  • Geting a "must be well-formed" error in a JSP

    I have a JSP file and it compiles and runs just fine, but JSC gives me the following error:
    There are errors in the project.
    You must resolve these problems.
    results.jsp:1: The markup in the document preceding the root element must be well-formed.
    on this line in the JSP (Line 1 of file)
    <%@page import="com.phonebook.User" %>
    Not sure why or how to fix it or what JSC is expecting...

    <%@page import="com.phonebook.User" %>
    should be after the root element declaration
    and the syntax for xml is<jsp:directive.page import="className"/>
    or import=package.Class

  • How to disable facelet well form checking

    Hi guys,
    I am using facelet. However, I got a few jsp page that I need to use traditional code like
    <% out.print("") %>So if put this in a facelet xhtml page, it will throws exception. I still need to use those jsf tag but I want to exclude well form checking for that particular page. Any idea?
    Thanks & Regards,
    Mark

    I tried the following:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:c="http://java.sun.com/jstl/core"
          xmlns:fn="http://java.sun.com/jsp/jstl/functions"
          xmlns:jh="http://jhighlight/"
          xmlns:cs="http://citcat.com/csJsf">
    <ui:composition template="/templates/pageAppCss.xhtml">
            <ui:define name="pageTitle">Horizontal scrollable Data Table</ui:define>
            <ui:define name="mainContent">
                <h:form id="horizontalScrollableDataTableFormId">
                    <cs:messages label="Error" />
                    <cs:dataTable id="horizontalScrollableDataTableId"
                            label="Data Table"
                            var="rowItem"
                            value="#{scrollableTableBean.dataList}"
                            divClass="horizontal-scrollable-table"
                            rowclasses="standard"
                      rows="2"
                      paginator="true"
                 >
                        <cs:column header="#">
                            <h:outputText value="#{rowItem.rowNo}" />
                           <![CDATA[
                   <% out.print("hello"); %>
                  ]]>                         
                        </cs:column>
                        <cs:column header="Team">
                            <h:outputText value="#{rowItem.team}" />
                        </cs:column>
                    </cs:dataTable>
                </h:form>
            </ui:define>
        </ui:composition>
    </html>but the hello word doesn't print out. please help. Thanks !
    regards,
    Mark

  • Not well-formed error while implementin ajax in firefox---can anyone help

    hi techies,
    I'm trying to implement ajax in firefox and i'm getting not well-formed error in error console
    heres part of code
    var xmlHttp;
    function create(){
    if(window.ActiveXObject){
    xmlHttp=window.ActiveXObject("Microsoft.XMLHTTP");
    else if(window.XMLHttpRequest){
    xmlHttp=window.XMLHttpRequest();
    else{
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    function getEmployeeDetails(){
    frm = document.forms[0];
    empid = frm.elements["empid"].value;
    url="empdetails.jsp?empid=" + empid;
    xmlHttp.open("GET" ,url, true);
    xmlHttp.onreadystatechange=doUpdate;
    xmlHttp.send(null);
    function doUpdate(){
    if(xmlHttp.readyState==4 && xmlHttp.status == 200){
    var root = xmlHttp.responseXML.documentElement;
    ----so on
    jsp Page is
    <%@ page import="java.sql.*" contentType="text/xml" %>
    <%
    String empid=request.getParameter("empid");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:vmouli","hr","hr");
    Statement st=con.createStatement();
    ResultSet rs=st.executeQuery("select first_name,salary from employees where employee_id=" + empid);
    if(rs.next()){
    out.println("<employee><name>");out.println(rs.getString(1));
    out.println("</name><salary>");out.println(rs.getString(2));
    out.println("</salary></employee>");
    else{
    out.println("<error>Employee ID not found</error>");
    rs.close();
    st.close();
    con.close();
    %>
    Firefox error console is saying not well-formed and is pointing to starting of my jsp page
    can anyone help plzzz

    mouli007 wrote:
    Thanx for that Cotton
    My XML document is wellformed no doubt about thatNo doubt about that?!?
    I would say there is a great deal of doubt about that, especially since the subject of this thread, which you stated was the error message from FireFox is that the document is not well formed at all. I have some more wild guesses about what you've screwed up. Would you like to hear them? My best guess at this point would be that you are outputting some whitespace at the start of the output.
    Anyway, this seems pretty pointless. Your code is crap. And I really don't see the point in telling us you have an error, posting code, then having several people identify several major problems in your code and then for you tell us that your code is perfect. Your code is not perfect. It's terrible. Fix it. You've been given several ideas in this and your cross-post as to how to fix it.

  • Not well-formed error in firefox in implementing ajax--pls help

    hi techies,
    I'm trying to implement ajax in firefox and i'm getting not well-formed error in error console
    heres part of code
    var xmlHttp;
    function create(){
    if(window.ActiveXObject){
    xmlHttp=window.ActiveXObject("Microsoft.XMLHTTP");
    else if(window.XMLHttpRequest){
    xmlHttp=window.XMLHttpRequest();
    else{
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    function getEmployeeDetails(){
    frm = document.forms[0];
    empid = frm.elements["empid"].value;
    url="empdetails.jsp?empid=" + empid;
    xmlHttp.open("GET" ,url, true);
    xmlHttp.onreadystatechange=doUpdate;
    xmlHttp.send(null);
    function doUpdate(){
    if(xmlHttp.readyState==4 && xmlHttp.status == 200){
    var root = xmlHttp.responseXML.documentElement;
    ----so on
    jsp Page is
    <%@ page import="java.sql.*" contentType="text/xml" %>
    <%
    String empid=request.getParameter("empid");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:vmouli","hr","hr");
    Statement st=con.createStatement();
    ResultSet rs=st.executeQuery("select first_name,salary from employees where employee_id=" + empid);
    if(rs.next()){
    out.println("<employee><name>");out.println(rs.getString(1));
    out.println("</name><salary>");out.println(rs.getString(2));
    out.println("</salary></employee>");
    else{
    out.println("<error>Employee ID not found</error>");
    rs.close();
    st.close();
    con.close();
    %>
    Firefox error console is saying not well-formed and is pointing to starting of my jsp page
    can anyone help plzzz

    As BalusC said - run the JSP producing the xml.
    Save that xml to a file - INCLUDING any white space - because thats what you actually get.
    Open that xml file in your browser - it should tell you at that point if your xml is well formed.
    AS BalusC said this is better done in a servlet - especially since you're just doing out.println.
    JSPs add extra whitespace and carriage returns. While that won't necessarily break XML, it can cause problems with the first few characters.

  • The markup in the document preceding the root element must be well-formed

    Hi,
    Each time I add some library, something serious happens to my NetBeans5.5 and Tomcat 5.5.17. This time I added jsf-facelets.jar and now nothing is being deployed. I m getting following exception
    javax.servlet.ServletException: Error Parsing /Dept.jsp: Error Traced[line: 1] The markup in the document preceding the root element must be well-formed.
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
    Is there any special procedure to follow to add libraries?
    Plz help.

    Facelets is XHTML. XHTML is XML-HTML. XML require strict well-formness of the tags. I.e. every tag should be correctly nested and closed.
    I would say, read the Facelets Developer Documentation: http://www.google.com/search?q=facelets+developer+documentation

  • The root element is required in a well-formed document.

    While trying to parse the following xml file using jaxp.jar and xerces.jar I am getting the following exception
    org.xml.sax.SAXParseException: The root element is required in a well-formed document.
    at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
    at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
    at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:790)
    at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
    at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:694)
    at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1026)
    at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
    at org.apache.xerces.readers.AbstractCharReader.changeReaders(AbstractCharReader.java:150)
    at org.apache.xerces.readers.AbstractCharReader.lookingAtChar(AbstractCharReader.java:217)
    at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:686)
    at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
    at XMLConverter.parse(XMLConverter.java:65)
    at XMLConverter.parse(XMLConverter.java:116)
    at XMLConverter.main(XMLConverter.java:282)
    xml file
    <?xml version="1.0"?>
    <CustomerOrder>
    <Customer>
    <FirstName> Bob </FirstName>
    <LastName> Hustead </LastName>
    <CustId> abc.123 </CustId>
    </Customer>
    <OrderItems>
    <OrderItem>
    <Quantity> 1 </Quantity>
    <ProductCode> 48.GH605A </ProductCode>
    <Description> Pet Rock </Description>
    <Price> 19.99 </Price>
    </OrderItem>
    <OrderItem>
    <Quantity> 12 </Quantity>
    <ProductCode> 47.9906Z </ProductCode>
    <Description> Bazooka Bubble Gum </Description>
    <Price> 0.33 </Price>
    </OrderItem>
    <OrderItem>
    <Quantity> 2 </Quantity>
    <ProductCode> 47.7879H </ProductCode>
    <Description> Flourescent Orange Squirt Gun </Description>
    <Price> 2.50 </Price>
    </OrderItem>
    </OrderItems>
    </CustomerOrder>
    Can anybody please help me.
    Thanks in advance

    Hi There,
    I too am experiencing the same problem. I originally began with the problem described in
    http://forum.java.sun.com/thread.jsp?forum=34&thread=138862
    I removed the jaxp.jar and parser.jar from Tomcat's Lib folder and added the xerces.jar. This moved me on to the problem described in this thread.
    Here is my XML file:
    <?xml version="1.0"?>
    <training_seminar>
         <student>
              <id>0001</id>
              <name>Joe Jones</name>
              <email>[email protected]</email>
              <passport level="4 course">yes</passport>
         </student>
         <student>
              <id>0031</id>
              <name>Patrick Thompson</name>
              <email>[email protected]</email>
              <passport>no</passport>
         </student>
    </training_seminar>
    And here is my XSL:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
              version="1.0">
    <xsl:template match="training_seminar">
    <HTML><BODY>
         <TABLE BORDER="1">
         <TR>
              <TH>Student ID</TH>
              <TH>Name</TH>
              <TH>E-Mail</TH>
              <TH>Passport</TH>
         </TR>
         <xsl:for-each select="student">
              <TR>
                   <TD> <xsl:value-of select="id"/></TD>
                   <TD> <xsl:value-of select="name"/> </TD>
                   <TD> <xsl:value-of select="email"/> </TD>
                   <TD> <xsl:value-of select="passport"/> </TD>
              </TR>
         </xsl:for-each>
         </TABLE>
    </BODY></HTML>
    </xsl:template>
    </xsl:stylesheet>
    And I guess while I am at it, my classpath:
    CLASSPATH=e:\java\jdk1.3.1\jre\lib\rt.jar;e:\jakarta-tomcat-3.2.3\lib\servlet.jar;E:\Dev Tools\xalan-j_2_1_0\bin\xerces.jar;E:\Dev Tools\xalan-j_2_1_0\bin\xalan
    .jar;E:\Dev Tools\xalan-j_2_1_0\bin\xsltc.jar;E:\Dev Tools\xalan-j_2_1_0\bin\xml
    .jar;.
    Any ideas is truly appreciated.
    Thanks,
    Gregg

  • Generate Query in PLSQL to return Well Formed XML with Multiple records

    Hi there
    This is very urgent. I am trying to create a PLSQL query that should retrieve all records from oracle database table "tbl_Emp" in a well formed xml format. The format is given below
    *<Employees xmlns="http://App.Schemas.Employees" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">*
    *<Employee>*
    *<First_Name></First_Name>*
    *<Last_Name></Last_Name>*
    *</Employee>*
    *<Employee>*
    *<First_Name></First_Name>*
    *<Last_Name></Last_Name>*
    *</Employee>*
    *</Employees>*
    To retrieve data in above format, I have been trying to create a query for long time as below
    SELECT XMLElement("Employees",
    XMLAttributes('http://App.Schemas.Employees' AS "xmlns",
    *'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"),*
    XMLElement("Employee", XMLForest(First_Name, Last_Name)))
    AS "RESULT"
    FROM tbl_Emp;
    But it does not give me the required output. It creates <Employees> tag with each individual record which I don't need. I need <Employees> tag to be the root tag and <Employee> tag to repeat and wrap each individual record. Please help me in this as this is very urgent. Thanks.

    Hi,
    Please remember that nothing is "urgent" here, and repeating that it is will likely produce the opposite effect.
    If you need a quick answer, provide all necessary details in the first place :
    - db version
    - test case with sample data and DDL
    That being said, this one's easy, you have to aggregate using XMLAgg :
    SELECT XMLElement("Employees"
           , XMLAttributes(
               'http://App.Schemas.Employees' AS "xmlns"
             , 'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"
           , XMLAgg(
               XMLElement("Employee"
               , XMLForest(
                   e.first_name as "First_Name"
                 , e.last_name  as "Last_Name"
           ) AS "RESULT"
    FROM hr.employees e
    ;

  • The configuration file did not contain well formed AppV configuration XML - When using Office 2013 ODT package

    All,
    I'm experiencing an issue where when using the Office 2013 package pulled down from ODT, that if I try to change the locations of either InfoPath Filler 2013 or Publisher 2013 from the default of Microsoft Office 2013 then I receive the message "The
    configuration file did not contain well formed AppV configuration XML. Please check the management server event log for more information". If I check Applications and Services\Microsoft\AppV\Server-Management\Admin the error displayed there is "An
    error was encountered parsing dynamic configuration file '0'. However I am able to change the shortcut location for all other applications except the above 2. I've tried redownloading the files using the ODT and also changing the version number (so far I've
    tried both the 15.0.4631.1002 and 15.0.4659.1001 with the same result).
    As all I'm interested in so far is having a package which contains Visio and Project I've tried following the article to exclude all the other Office elements:
    http://technet.microsoft.com/library/jj219426(v=office.15).aspx#BKMK_ExcludeAppElement. However the package looks to be the same and when I load it into the management console all the options and elements to Office 2013 are available like they were before
    when I hadn't set the exclude tags so I'm not sure whether the ExcludeApp parameters actually work correctly.
    This then brings me onto the 3rd issue I've experienced. I have a group for the Visio users and I've set custom security for them to have Visio delivered to them but not Project and then a seperate group for just Project users who will have Project delivered
    to them but not have Visio. When testing this sometimes seems to work but other times it seems to trip out and a user just in the Project or Visio group will get all of the Office 2013 applications and under the default location of Microsoft Office 2013. When
    trying to spot correlation with this it appears random and can happen to any user on any device. We have sequenced a few applications ourselves where different parts are needed for different users and we have successfully managed this using different security
    groups for different applications, just as I'm trying here with Office 2013.
    Has anyone else experienced the issue with the "did not contain well formed XML" as at the start of the post and how were you able to resolve this? Also has anyone any advice on how to troubleshoot the issue with the security seeming to trip out
    and publish all applications within a package to a user regardless of whether they are in the correct group or not?
    The management / publishing servers are 5.0.1224.0 which is SP1 HF4 and the clients are on SP2 HF5.
    Thanks

    Nicke,
    The config files are UTF-8. I did find the same article as yourself, however when searching for the value ‘TakeoverExtensionPointsFrom46=’ within either of the configuration.xml files that text isn’t found.
    No sinister reason not to share the file used, just it’s the same structure as referenced in the article:
    http://technet.microsoft.com/en-us/library/dn745895(v=office.15).aspx. The only difference being that I’m using ProPlusVolume and I’ve set a version number (which is the October
    2014 update). I’ve even looked to follow the above example as closely as possible in just using the ExcludeApp ID of Access and InfoPath, just to try and prove the process. However I still get the usual full package. The version of the Click-to-Run setup.exe
    I’m using is 15.0.4623.1001, so later than the version specified at the end of that article which is 15.0.4619.1000. Where can I expect to see the elements excluded? Will it be when loading the package into the management console or would it just not appear
    on the machine when delivered?
    <Configuration>
      <Add SourcePath="C:\OfficeDeploymentToolV2" Version="15.0.4659.1001" OfficeClientEdition="32">
        <Product ID="ProPlusVolume">
          <Language ID="en-us" />
    <ExcludeApp ID="Access" />
    <ExcludeApp ID="InfoPath" />
        </Product>
      </Add>
    </Configuration>
    3). We’ve not used global publishing in our environment yet so I will try that. I’ve set both GlobalRefreshEnabled and GlobalRefreshOnLogon to True and when using the command Get-AppvPublishingServer on the client I’m testing with I can see this is pulled
    through correctly. I’ve also added the client name to the AD group used to grant access to the package and it is published. However nothing is pulling through onto the Client, so are there any steps I’ve missed or misinterpreted when looking to set this up?
    I guess the global publishing is there to keep in with licensing for Office being per device? On a slight aside, as Windows licensing is being changed to allow per user licensing
    http://www.zdnet.com/microsoft-to-make-per-user-windows-licensing-available-to-enterprise-customers-7000035401/ does anyone know if there are any plans to allow for Office / Project / Visio licenses to go per user as well? We’re a volume license customer
    rather than subscription based so I think a lot of the options to selectively deploy Visio and Project are excluded for us.
    Dan,
    Ok that explains why the security could be tripping out then and leading to this result. As above I’ll try with global publishing and see how I get on.
     From what I’ve read / watched  I think only one Office 2013 package can be published to a machine, so we would be unable to have a separate package for Visio and a separate package for Project and then attempt to deliver
    them both together. If a user wanted both Project and Visio then I guess we’d need to have a combined Project and Visio package to cover than scenario, but then 2 more separate Project and Visio packages for those who would only want either Project and Visio
    (I think).
    The scenario we’re looking at is to see whether we are able to deliver Project and / or Visio to different users through an AppV package and this will then cover users on XenApp or on fat clients. Only a small proportion of our
    users will need access to Project and / or Visio so therefore we’d only have a small amount of Project and Visio licenses.
    However from what I’ve tested up to this point and from what I’ve picked up from Forum posts / watched on TechEd sessions is that as publishing is Global and is unable to use different security groups for different elements of the
    suite, then using Office through AppV is only suitable if you will be delivering the whole suite (including Project and Visio) to all of your users. So in a scenario where you’d only want certain elements to be delivered to a handful of users then you’d need
    to keep with traditional ESD methods to have this installed onto fat clients and steer clear of XenApp. If wanting to install to XenApp then a lockdown tool like AppSense or AppLocker would also need to be brought into the equation.
    Is my understanding above correct or have I missed some options / methods?
    If the full Office package is always delivered but a company only has Office licenses and no Project and Visio licenses for all its users, how do they stop Project and Visio being delivered and being available? Or again if you have
    this use case is the AppV method one which will be unsuitable?
    Thanks

  • Since installing the latest update, Firefox will not load; it gives me the following error -- XML Parsing Error: not well formed.

    since installing the latest update, Firefox first operated with some errors but now will not load at all; it gives me the following error --
    XML Parsing Error: not well formed
    locations chrome://browser/content/browser.xml
    Line Number 1191, column 20:
    utton id="back-forward-dropmarker" type="menu" chromedir="&locale.dir;"-------------------
    please note that the words "utton ID" are exactly as the error message gives it; and at the end of the message there are exactly 19 hyphens.
    I don't know why this faulty code is referencing things to do with "chrome"... the Chrome browser is not installed on this PC or anywhere on our network.
    Also, this is not the first problem I had after clicking Firefox's prompt for the latest update. Before Firefox retreated into this error message, it was loading but running with some faults...
    1. the bookmark symbol was not appearing on the right hand side of the URL line, so I had always to click on "bookmark this page", after which the bookmark symbol did appear; however I don't know if the bookmarking function worked properly.
    2. the back and forward buttons were not highlighted, as if I had not come from a previous page; so once I clicked on a link to a new page I could not go back to where I came from because Fiefox thought I hadn't come from anywhere.
    3. there may have been other errors, but I did not find them.
    How do I reinstate my Firefox program to work properly please? do I have to download the latest version and reinstal? if so, do I have to remove the old version first? or is there a fix?
    Even to write this message I have been forced to use (yuk -- I don't like to say this!!!) Internet Explorer. So please -- I need help urgently.
    Thanks,
    NOEL

    Some how I solved my problem by opening a user account and downloading Firefox 4.0 beta and installing it, I did try it, worked fine, so I did close the user account and did go back to my own account(switched user), the main page that I had problem with Firefox which would not open, I dabble click on Firefox it start working again!! I hope that solves your problem too.
    firefox will not open, it gives me this cod and would not turn off, Error on switching in renew: NS_ERROR_UNEXPECTED, Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] id: none

  • XML Problem - Markup not well-formed? (kinda long)

    Hello, I'm working on my first AIR app and I've run into a bit of a snag.  The app is intended to allow users of our system to create a Word document, save it as XML, and then load it into the AIR app and have some manipulation performed to extract data, and finally store the data in a database.  The reasons for this app to exist are pretty irrelevant for the particular problem that I'm having, but a little background on my development efforts might help shed light on my situation, and with luck one of you might be able to help me figure this out.
    I started on this app using the URLLoader and URLRequest objects to load a Word document saved as XML from a server.  This worked fine, I created logic to distinguish between Word 2007 and Word 2003 XML formats and using the E4X XML and XMLList objects I was able to load that XML into an XML object, change it to a string, grab the document body, strip out namespaces and such (formatting is mostly irrelevant here too, only the actual data is of importance) amd eventually get a much simpler XML object or list that contained just the data relevant to the purpose at hand.  This was all working fine, I managed to get both Word XML formats to process as I wished and spit out new XML that will serve as the basis for another application that we run.  Great! 
    The problem was that in order to use this method in a distributed way I needed to have the original Word documents accessible to the code, which meant having the user upload their Word file (saved as XML) and then retrieving it with the URLLoader and URLRequest.  I actually implemented this method using the FileReference object in AS3 and using some simple PHP code to store the file in a server directory that was accessible to the client.  Unfortunately, this lead me to thinking about the security issues involved and how allowing PHP to write to a directory would open it to potential malicious attacks, yada yada yada, you all know the issues.  So I thought that I might be able to read the file before uploading it in the kind of circular logic that sometimes happens.  When I started into the AS3 docs to check on classes to help, I realized that my initial suspicions were correct and that in order to load and read the file locally, I could use AIR, have the user load up their XML file, process it and then send the resulting XML and info to the database directly (eliminating the need to send files to the server AND preventing the need to allow PHP to write to the server in this instance).
    So after a bit of reading and testing, I managed to modify my FLA to publish an AIR file, and started debugging.  My Word 2007 document worked fine - I create a File object and a FileStream object and they are easily able to access the file the user selects via the File.browseForOpen method.  I then run the processing code, which begins by creating an XML object from the data read from the file.  What's happening now is that while the Word 2007 document loads and processes without an issue, the Word 2003 document is causing a 1088 error: The markup in the document following the root element must be well-formed.
    I don't understand why this is happening since the same document in the same format was able to be loaded into an XML object when I used the URLLoader to grab the file.  The only thing I can conclude is that somehow the FileStream.readUTFBytes() method is somehow causing an issue.  I am able to trace out what is being read, but the file is lengthy and I haven't completed my analysis to see if and where the changes are occuring.
    If anyone has any experience with this type of situation, I'd really appreciate hearing about it.  Thanks in advance for any help you can provide.

    OK, it turns out that for some reason the Word 2003 XML document was being read with an extra character preceding the actual markup.  By dumping the stream into a string and then clipping the first character I was able to get the app running again.  Thanks for taking the time to read this thread! 

  • XML from CF not well-formed?

    I have been working through the Training from the Source book
    on Flex2 (Trapper, Boles, Talbot, etc.). In Lesson 17, it deals
    with accessing server-side objects.
    One piece of code accesses a CF template, which brings in an
    XML file:
    <mx:HTTPService id="prodByCatRPC"
    url="
    http://localhost/flexGrocer/xml/categorizedProducts.cfm"
    result="prodByCategoryHandler(event)"
    resultFormat="e4x" />
    The CF plate from the book's file has the following:
    <cfheader name="Expires" value="#now()#" />
    <cfxml variable="xProducts">
    <cfinclude template="categorizedProducts.xml">
    </cfxml>
    <cfset xmlObject=ToString(xProducts)>
    <cfcontent type="text/xml" />
    <cfoutput>#variables.xmlObject#</cfoutput>
    When run the Flex file, I get a run-time message which seems
    to indicate that the XML is not well-formed. (Here is a bit of the
    message; not sure I'm understanding it!):
    [RPC Fault faultString="Error #1088: The markup in the
    document following the root element must be well-formed."
    faultCode="Client.CouldNotDecode" faultDetail="null"]
    I am ASSUMING that the CF page is not returning the xml as
    desired, because if I simply change the flex http service call to
    the xml file that the CF page is including, the flex app runs as
    expected and without errors:
    url="
    http://localhost/flexGrocer/xml/categorizedProducts.xml"
    (something in the posting mech is making the above url
    statement messed up, but you can probably tell what I mean)
    I am a CF developer and although haven't used the book's
    exact method to get the cf generated xml, I have done so
    successfully for Spry and other things.
    I tried some ot the things I had to do to get the CF
    generated xml to work in Spry with this flex, but didn't help.
    Tried adding a reset='true" with the cfcontent tag; tried making
    the cfcontent wrap the output; added cfprocessing tags to
    suppresswhitespace.
    Appreciate any thoughts/help on how to solve this. Also,
    whether others agree that the problem is with the generated xml
    rather than something else.
    Thanks
    Keith

    I don't remember the exact context when I first posted this
    question and answered it; but, if one doesn't want to change
    overall settings for debugging in cf admin., I *think* you can
    ajust for a specific area using cfsetting and/or
    cfprocessingdirective. There's a number of attributes and
    combinations there that I think can take care of the problem. I
    forget for sure, but may want to try that, especially on a
    development box where you might generally want debugging to be on.
    Also, if using cfcs in any part of what you generate, they
    can produce whitespace. To solve (or minimize), make sure that
    output attribute in the component is false and that output in
    function is false (unless directly outputting within the function.
    Seems like CF and whitespace is an ongoing item to try to
    manage.
    Keith

  • How to make an XML in form of String to well-formed XML document

    Hi Folks,
         Thanks for all you support in Advance, i have a requirement, where i have an XML in one line string form and i wondering how to convert into well formed XML?
    Input XML sample:
    <root> <one><link1></link1></one><two></two> </root>
    to well-formed XML
    <root>
          <one>
              <link1></link1>
         </one>
         <two>
         </two>
    </root>
    I was trying to create a well-formed document using DOM or SAX parsers in ExcuteScript activity, but it is leading to some complicated exceptions. And i am looking for the simplest way for transformation.
    Please let me know
    thanks,
    Rajesh

    Rajesh,
    I don't understand. There is no difference between the two XML instances other than whitespace. They are both well-formed XML.
    <root> <one><link1></link1></one><two></two> </root>
    <root>
          <one>
              <link1></link1>
         </one>
         <two>
         </two>
    </root>
    Steve

  • Every time I launch Firefox it pops up an error stating "Firefox could not install this item because "install.rdf" (provided by the item) is not well-formed or does not exist. Please contact the author about this problem."

    Firefox could not install this item because "install.rdf" (provided by the item) is not well-formed or does not exist. Please contact the author about this problem.
    The statement above is in the pop up error box every time, when I launch Firefox. If I click ok in the box Firefox then opens. How do I fix this initializing/launch problem?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")<br />

  • DPM 2012 R2 install fail - Reporting services "definition contains XML that is not well-formed or the XML is not valid"

    Hi Everyone,
    I've been battling with this for a while and I'm getting nowhere. I'm attempting to install DPM 2012R2 onto a fresh VM with a local SQL installation. The setup is as follows:
    Server OS: 2008R2 SP1
    SQL: 2008 R2 standard with SP3(tried SP2 before this)
    Collation: SQL_Latin1_General_CP1_CI_AS
    Reporting services installed: Yes(ticked do not configure during the installation)
    Enabled reporting servics on port 80 with the default URL
    DPM Installation does not throw any errors during the preinstall stage(The server passes all the checks)
    Basically, when Installing. I get this error(extract):
     at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.DeployFileInServer(Boolean recreate, ReportDBInfo rptInfo)
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.DeployReports(String sourceFolderPath, Boolean recreate, Boolean calledFromSetup)
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.InstallReports(Boolean calledFromSetup, String sourceFolderPath, String sqlServerName, String sqlInstanceName, String dbConnectionString)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.ReportingConfiguration.DeployReports(Boolean isRemoteReporting, String sqlMachineName, String sqlInstanceName, String rsMachineName, String rsInstanceName, String installerPath)
    [10/12/2014 2:35:25 p.m.] * Exception :  => Report configuration failed.Verify that SQL Server Reporting Services is installed properly and that it is running.Microsoft.Internal.EnterpriseStorage.Dls.Setup.Exceptions.BackEndErrorException: exception
    ---> Microsoft.Internal.EnterpriseStorage.Dls.Setup.Exceptions.ReportDeploymentException: exception ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.ReportingException:
    exception ---> System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: The report definition is not valid or supported by this version of Reporting Services. This could be the result of publishing a report definition of
    a later version of Reporting Services, or that the report definition contains XML that is not well-formed or the XML is not valid based on the Report Definition schema. Details: Root element is missing.
       at Microsoft.ReportingServices.WebServer.ReportingService2005Impl.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Warning[]& Warnings)
       at Microsoft.ReportingServices.WebServer.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Warning[]& Warnings)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.Reporting.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties)
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.CreateReport(String pathOfReport, ReportDBInfo rptInfo)
       --- End of inner exception stack trace ---
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.CreateReport(String pathOfReport, ReportDBInfo rptInfo)
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.DeployFileInServer(Boolean recreate, ReportDBInfo rptInfo)
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.DeployReports(String sourceFolderPath, Boolean recreate, Boolean calledFromSetup)
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.InstallReports(Boolean calledFromSetup, String sourceFolderPath, String sqlServerName, String sqlInstanceName, String dbConnectionString)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.ReportingConfiguration.DeployReports(Boolean isRemoteReporting, String sqlMachineName, String sqlInstanceName, String rsMachineName, String rsInstanceName, String installerPath)
       --- End of inner exception stack trace ---
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.ReportingConfiguration.DeployReports(Boolean isRemoteReporting, String sqlMachineName, String sqlInstanceName, String rsMachineName, String rsInstanceName, String installerPath)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.BackEnd.DeployReports(String reportserverConfigFilePath, Boolean isOemSetup, String sqlMachineName, String sqlInstanceName, Boolean isRemoteReporting, String reportingServerMachineName, String
    reportingInstanceName)
       --- End of inner exception stack trace ---
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.BackEnd.DeployReports(String reportserverConfigFilePath, Boolean isOemSetup, String sqlMachineName, String sqlInstanceName, Boolean isRemoteReporting, String reportingServerMachineName, String
    reportingInstanceName)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.DpmInstaller.DeployReports(Boolean isRemoteReporting, Boolean isUpgrade)
       at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.ProgressPage.InstallerThreadEntry()
    *** Mojito error was: ReportDeploymentFailed; 0; None
    [10/12/2014 2:35:25 p.m.] *** Error : Report configuration failed.
    Verify that SQL Server Reporting Services is installed properly and that it is running.
    ID: 812
    [10/12/2014 2:35:25 p.m.] Information : Data Protection Manager installation has failed. All the items that were copied during the installation process have been removed.
    For details, click the Error tab.
    Any ideas?
    I've managed to get it to this stage. Originally I didn't have encryption keys or a listening port(which I fixed).

    Can you try following steps:
    If there are SSL certificates on your computer, by default SQL 2008
    installation configures HTTPS for reporting websites. When DPM tries to
    deploy reports on these websites it may fail if the reporting websites
    are not accessible (might be due to invalid/expired certificates). To
    workaround this, provided you do not require HTTPS for reporting websites do
    the following:
    1. Edit C:\Program Files\Microsoft DPM\SQL\MSRS10.MSDPMV3BETA1EVAL\Reporting
    Services\ReportServer\rsreportserver.config
    2. Set the SecureConnectionLevel to 0 if the current value is 2 (A value to
    2 means secure connection is required)
    3. Connect to SQL reporting service configuration manager and connect to the
    instance MSDPMV3BETA1EVAL
    4. Click on Web Service URL, click advanced and remove SSL identities
    5. Repeat the above for Report Manager URL
    6. Make sure report manager URL and web service URL are accessible with out
    any errors.
    6. Restart report server
    If that doesn't solve the problem, please try following steps:
    1. Open Start-> All programs->SQL server 2008->Configuration Tools->Report
    Server Configuration Manager
    2. Connect to the instance which the DPM is using to install.
    3. Browse Report Manager URL and web service url
    4. If report manager URL or web service url throws any error say 500 or 404
    fix the error. (Try also replacing machine name with localhost in url)
    5. Otherwise delete DPMReports folder (if present) using below instructions
    6. Restart reporting services
    7. Try DPM setup again.
    Deleting DPM reports:
    1. Open report manager URL in IE
    2. Click show details on right hand side
    3. Put a tick against DPMReports folder
    4. Click Delete button.
    Regards, Trinadh [MSFT] This posting is provided AS IS with no warranties, and confers no rights. If you found the reply helpful, please MARK IT AS ANSWER. Looking for source of information for DPM? http://blogs.technet.com/b/dpm/ http://technet.microsoft.com/en-in/library/hh758173.aspx

Maybe you are looking for

  • Schedule line date change in VA01/VA02

    Hi, My requirement is to update the schedule line date taking the lead time from purchasing info record. As per SAP standard it takes the factory days into consideration while generating the confirmed delivery date. But we have to update the date tak

  • Runtime error in production but working in test

    Hi all gurus!<br><br> We have an interesting problem with two own developed Java DynPage components. They both have inputfields that are put in a table by a TableViewCellRenderer. The code looks like this and is pretty straight forward:<br><br>      

  • [solved] Non-alphanumeric characters broken in TinyChat

    Hello, fellow archers. I've been having a bit of trouble with the TinyChat site. Most non-alphanumeric characters are being displayed as crossed-out boxes. This problem is exclusive to TinyChat and has not occured in any other Flash applications. An

  • Teaming or Port-channel support on NCS appliance

    Hi, we have purchased one NCS PRIME-NCS-APL-K9 appliance. We are looking at connecting this box to two more swicthes configured in HSRP for the VLAN on which this box will be place. Can i configure active/stand-by teaming of both the ethernet ports a

  • Link-editor

    Hello, Wanted to get some help/advice regarding the following. I see that there are generally two link-editors available - /usr/ccs/bin/ld and /usr/ucb/ld I am guessing that generally the two lds are the same, except that ucb (where applicable) makes