Bind JAXB Content Model to html elements?

We're trying to develop a system that passes an XML stream from server to client form.
I created a JAXB content model to parse the XML so the elements can be mapped to gui components.
A class, ContentTree, wraps the content model. ContentTree has a single method: public void loadXML(String).
I have a jspx with a button which invokes a back-end service that returns the XML.
I can't figure out how to bind the button's returned XML to ConentTree.loadXML(xmlData).
Thanks!
ps: maybe our approach is entirely lame. We need to pass the XML to the form, edit it, validate it, and send it all back to server.
Edited by: user632544 on Feb 9, 2011 9:50 PM

Hi Sudhakar,
Could you please give us a more clear picture as to what you are doing. When you say HTML elements could you be speicific as to which HTML elements and how are you trying to bind these to HTML elements? Also you have mentioned about query on mulitple tables. There is a tutorial titled "Using Databound Components to Access Databases" at the page:
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
The above tutorial explains how data from multiple tables can be retrieved and displayed.
hth
Cheers
Giri :-)
Creator Team

Similar Messages

  • Sharepoint error - Search Issue - The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1).

    i see this error everywhere - In ULS logs, on site. On the site > Site settings > search keywords; I see this - 
    The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS 7.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;} code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} .config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 40px;} ul.first,ol.first{margin-top:5px;} fieldset{padding:0 15px 10px 15px;} .summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin-top:0px; border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px solid #969696; border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;'.
    I am facing issues in searching, my managed metadata service is not running, search results page throws internal error. Any Idea why this above error comes.
    P.S: We use windows authentication in our environment.

    Hi IMSunny,
    It seems you have solved this issue based on your another post.
    http://social.technet.microsoft.com/Forums/en-US/aa468ab0-1242-4ba8-97ea-1a3eb0c525c0/search-results-page-throws-internal-server-error?forum=sharepointgeneralprevious
    Thanks
    Daniel Yang
    TechNet Community Support

  • WCF returning "The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8)"

    I have a WCF service I am trying to run on a new installation of 64-bit Windows Server 2008 IIS. Although it runs fine on Windows 2003 IIS, it is throwing the error in the thread title, which appears to be a server config issue, but I am not sure. Googling and searching the MSDN forums did not turn up a solution. I tried running WCF Logging, but that didn't help either.
    Does anyone have any suggestions on how to solve this probelm?
    Here is the error:
    The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>500 - Internal server error.</title>
    <style type="text/css">

    I have the same issue on Windows 7 machine. The service works fine using a SoapUI client but a .Net client faisl to get a response.
    Hi,
    I have a WCF service which works perfectly when using SoapUI but throws error in my .Net client.
    {"The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first
    1024 bytes of the response were: '<HTML><HEAD><link rel=\"alternate\" type=\"text/xml\" href=\"http://xyz.mysite.com/ysa/Broker.svc?disco\"/><STYLE type=\"text/css\">#content{ FONT-SIZE: 0.7em;
    PADDING-BOTTOM: 2em; MARGIN-LEFT: 30px}BODY{MARGIN-TOP: 0px; MARGIN-LEFT: 0px; COLOR: #000000; FONT-FAMILY: Verdana; BACKGROUND-COLOR: white}P{MARGIN-TOP: 0px; MARGIN-BOTTOM: 12px; COLOR: #000000; FONT-FAMILY: Verdana}PRE{BORDER-RIGHT: #f0f0e0 1px solid; PADDING-RIGHT:
    5px; BORDER-TOP: #f0f0e0 1px solid; MARGIN-TOP: -5px; PADDING-LEFT: 5px; FONT-SIZE: 1.2em; PADDING-BOTTOM: 5px; BORDER-LEFT: #f0f0e0 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #f0f0e0 1px solid; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e5e5cc}.heading1{MARGIN-TOP:
    0px; PADDING-LEFT: 15px; FONT-WEIGHT: normal; FONT-SIZE: 26px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: -30px; WIDTH: 100%; COLOR: #ffffff; PADDING-TOP: 10px; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #003366}.intro{MARGIN-LEFT: -15px}</STYLE><TITLE>Broker
    Service</TITLE></HEAD><BODY><DIV id=\"content\"><P class=\"head'."}
    I have the same service hosted on my local machine and when I point to the local service I can execute the operation with no issues. The message encoding is Soap11. I tried changing to Soap12 but I get exact same error. Any ideas greatly appreciated.
    I do have windows Activation Features installed and I am using .Net Framework 4.
    Thanks
    Sofia Khatoon

  • XML Parser Message: Element series is not valid for the content model

    Hello,
    I work with FrameMaker 8 and DITA.
    I change the element prodinfo in the topic.edd from:
    General rule: (prodname), (vrmlist), (brand | series | platform | prognum | featnum | component)*
    to:
    General rule: (brand | series | platform | component)*
    When I import the element definition to the template everything is okay.
    When I insert the elements metadata, prodinfo, brand, series, platform and component into a topic I get the XML Parser Message that the element brand is not valid for the content model (prodname,vrmlist, ((brand|series|platform|prognum|featnum|component))*).
    When I delete the element brand in the topic I get the XML Parser Message that the element series is not valid for the content model (prodname,vrmlist, ((brand|series|platform|prognum|featnum|component))*).
    I change the element prodinfo in the topic.edd to:
    General rule: (brand)?, (series)?, (platform)?, (component)?
    ...and get the same Parser Message.
    I do not understand that. Is not it allowed to change the EDD this way without changing the DTD?
    With kind regards
    Nina

    Hi Nina...<br /><br />In general, the EDD and DTD need to sync up. You can remove elements from an EDD element definition's general rule, as long as the resulting elements are still valid to the DTD. But if changing a general rule creates an invalid structure, you'll need to also change the DTD to allow the revised structure.<br /><br />With DITA, it is common to remove inline elements from block-level elements. For example, you might want to remove the <msgblock>, <msgnum>, and <msgph> elements from the general rule of the <p> element .. this can be done easily in the EDD and the resulting structure remains valid with the DTD.<br /><br />However, what you're doing leaves the <brand> element as a child of <prodinfo> .. which is invalid. You'll get these errors when saving a file, since this is when the file is validated against the DTD.<br /><br />I do not recommend modifying the structure in such a way that requires you to modify the DTD. If you really need to do this, then you should consider making a specialization to support your revised model.<br /><br />I hope this helps.<br /><br />Cheers and Happy New Year!<br /><br />...scott

  • How to include text as HTML elements (see DOMElement)

    I am working with Flash PRO CC v. 14.0.  to convert my Flash website to HTML5 / javascript
    I have converted a file to the HTML5 Canvas
    I am very happy that the new Flash Pro has the feature to convert to HTML5 canvas
    HOWEVER:
    In my original .FLA file project I use only one font: Copperplate Bold.  I use several sizes of that font within the project / scene
    In the original file for all text I use static text, Letter spacing, AntiAlias, AutoKern and single line (Linetype)
    - none of which the HTML5 canvas seem to allow / support?
    How do I maintain the FONT look that I have chosen in my original FLASH project, after I convert to HTML5 canvas?
    Is there a way in the HTML canvas to maintain the FONT look that I want?
    HTML5 canvas will not allow Font embedding
    The device font destroys the LOOK of my Copperplate Bold font.
    How do I include text as HTML elements (see DOMElements)?
    WARNINGS generated when I convert the original file into an HTML Canvas:
    Warnings generated while copying/importing in 140827a HTML test.fla:
    * AntiAlias is not supported in HTML5 Canvas document, and has been converted to DeviceFonts in an instance of Text.
    * AutoKern is not supported in HTML5 Canvas document, and has been removed in an instance of Text.
    * Frame Scripts have been commented
    * LetterSpacing is not supported in HTML5 Canvas document, and has been converted to 0.0 in an instance of Text.
    * LineType is not supported in HTML5 Canvas document, and has been converted to MultiLineNoWrap in an instance of Text.
    * Some artwork contains Hairline stroke, which is not supported in HTML5 Canvas document, and has been converted to Solid.
    * StaticText is not supported in HTML5 Canvas document, and has been converted to DynamicText in an instance of Text.
    New HTML Canvas Document created.
    NOTE:  So far the only way I have been able to maintain the font look is to convert the fonts to .png files
    This is painstaking work that I would like to avoid.
    Even then I still get a WARNING when I test my scene - (no doubt because I left the original FONT text  in guide layers)
    After conversion ON TEST SCENE:
    WARNINGS:
    Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (18)
    Only circular (not oval) radial gradients are supported. (85)
    Text support is limited. It is generally recommended to include text as HTML elements (see DOMElement). (6)
    Color effects are published as a filter and subject to the same limitations. (4)
    Filters are very expensive and are not updated once applied. Cache as bitmap is automatically enabled when a filter is applied. This can prevent animations from updating. (2)
    Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system.
    HOW CAN I MAINTAIN the FONT LOOK that I have chosen for my project?
    How do I include text as HTML elements (see DOMElements)?
    ANY HELP will be appreciated
    A good, in depth, tutorial on the subject (FONTS) would be a BIG help to many using the convert to HTML5 canvas features.

    GOOGLE HAS
    https://www.google.com/fonts
    choose a font from above site
    then:
    google generates instructions on how to embed that font
    Montserrat
    3. Add this code to your website:
    <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    4. Integrate the fonts into your CSS:
    The Google Fonts API will generate the necessary browser-specific CSS to use the fonts. All you need to do is add the font name to your CSS styles. For example:
    font-family: 'Source Sans Pro', sans-serif;
    font-family: 'Ubuntu', sans-serif;
    font-family: 'Montserrat Alternates', sans-serif;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Open Sans', sans-serif;

  • Unsupported Content-Type: text/html; charset=iso-8859-1

    Originally posted on JBI forum -
    It was helpfully suggested there that I check on JAX-WS forum whether this was an issue with utf-8/16 encodings...
    I have been experimenting with the openESB composite application described here
    http://jlorenzen.blogspot.com/2007/08/using-jbi-javaee-serviceengine.html
    This works fine as it appears on this webpage.
    I have tried to adapt it to act as a proxy to a secure version of Hello EJB that runs on the SSL port of glassfish AS.
    To do this I edited the EJB to set up the security properties. Edited the BPEL wsdl file and created a new composite application using the updated BPEL project.
    This leads to an Unsupported Content-Type exception when a test case is run on the composite application from SOAP-UI
    Does anyone know how I can explicitly set the content type of the proxied request to the secure WS?
    Thanks
    Joss Armstrong
    HTTPBC-E00720: Provider for service [{http://j2ee.netbeans.org/wsdl/HelloBPEL}HelloBPELService] endpoint [HelloBPELPort] responded with an error status. Error detail is: BPCOR-6135:A fault was not handled in the process scope; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling}systemFault; Fault Data is <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling" type="sxeh:faultMessage" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"><jbi:part>Unsupported Content-Type: text/html; charset=iso-8859-1 Supported ones are: [text/xml]</jbi:part></jbi:message>. Sending errors for the pending requests in the process scope before terminating the process instance
    BPCOR-6151:The process instance has been terminated because a fault was not handled; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling}systemFault; Fault Data is <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling" type="sxeh:faultMessage" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"><jbi:part>Unsupported Content-Type: text/html; charset=iso-8859-1 Supported ones are: [text/xml]</jbi:part></jbi:message>
    com.sun.jbi.engine.bpel.core.bpel.exception.SystemException: BPCOR-6131:An Error status was received while doing an invoke (partnerLink=EJBPartnerLink, portType={http://hellopack/}Hello, operation=sayHello)
    BPCOR-6129:Line Number is 29
    BPCOR-6130:Activity Name is Invoke1
    at com.sun.jbi.engine.bpel.core.bpel.model.runtime.impl.InvokeUnitImpl.processStatus(InvokeUnitImpl.java:968)
    at com.sun.jbi.engine.bpel.core.bpel.model.runtime.impl.InvokeUnitImpl.process(InvokeUnitImpl.java:538)
    at com.sun.jbi.engine.bpel.core.bpel.model.runtime.impl.InvokeUnitImpl.doAction(InvokeUnitImpl.java:181)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:148)
    at com.sun.jbi.engine.bpel.core.bpel.engine.BusinessProcessInstanceThread.execute(BusinessProcessInstanceThread.java:98)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.process(BPELProcessManagerImpl.java:1001)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:258)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:1229)
    at com.sun.jbi.engine.bpel.BPELSEInOutThread.processStatus(BPELSEInOutThread.java:407)
    at com.sun.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:239)
    at com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:191)
    *Caused by: com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html; charset=iso-8859-1 Supported ones are: [text/xml]*
    at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:291)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:128)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:287)
    at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:171)
    at com.sun.xml.ws.tx.client.TxClientPipe.process(TxClientPipe.java:177)
    at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
    at com.sun.xml.ws.client.Stub.process(Stub.java:248)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:180)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:206)
    at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.outboundCall(OutboundMessageProcessor.java:986)
    at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.dispatch(OutboundMessageProcessor.java:1016)
    at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:661)
    at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processMessage(OutboundMessageProcessor.java:243)
    at com.sun.jbi.httpsoapbc.OutboundAction.run(OutboundAction.java:63)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    Request doesnt have a Content-Type
    com.sun.xml.ws.server.UnsupportedMediaException: Request doesnt have a Content-Type
    at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:267)
    at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:276)
    at com.sun.xml.ws.transport.http.HttpAdapter.invokeAsync(HttpAdapter.java:341)
    at com.sun.jbi.httpsoapbc.embedded.JAXWSGrizzlyRequestProcessor.processAsynchRequest(JAXWSGrizzlyRequestProcessor.java:372)
    at com.sun.jbi.httpsoapbc.embedded.JAXWSGrizzlyRequestProcessor.service(JAXWSGrizzlyRequestProcessor.java:228)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at com.sun.jbi.httpsoapbc.embedded.JBIGrizzlyAsyncFilter.doFilter(JBIGrizzlyAsyncFilter.java:95)
    at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:175)
    at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:153)
    at com.sun.enterprise.web.connector.grizzly.async.AsyncProcessorTask.doTask(AsyncProcessorTask.java:92)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)

    Jossarm/Jeff,
    The Cryptography forum is not the right forum for this question; have you tried posting to the Glassfish forum on java.net?
    But, here is what I think the problem might be:
    SOAP-based web-service security uses XML Signature and XML Encryption to secure the message - not SSL; as a result it uses text/xml at the start of its message (which is what SOAP messages are). SSL assumes that the secure session has been established and all messages thereafter, are expected to begin with text/html (as expected in HTTP). You cannot mix-and match this - unless the service is an HTTP-based service that expects a SOAP-based message embedded in the HTTPRequest.

  • "Content-type: text/html; charset=utf-8 cache-control: no-cache..." display

    "Content-type: text/html; charset=utf-8 cache-control: no-cache, no-store, max-age=0, must-revalidate pragma: no-cache X-Frame-Options: DENY "
    is being displayed at the top of one of our pages now. I can see that line in the body section of the page using Firebug, but can't find what is creating it there.
    Does anyone have any tips on how I would go about finding something like this?
    The page was using a custom theme but that stopped working when we upgraded to 4.1. So, I copied the Simple Green template to start modifying.
    Mentioning that in case it's relevant...
    Thanks!

    LauraC wrote:
    "Content-type: text/html; charset=utf-8 cache-control: no-cache, no-store, max-age=0, must-revalidate pragma: no-cache X-Frame-Options: DENY "Looks like an HTTP header...
    is being displayed at the top of one of our pages now. I can see that line in the body section of the page using Firebug, but can't find what is creating it there.
    Does anyone have any tips on how I would go about finding something like this?If it's included within the <tt>body</tt> element in the original page source then it's produced by something in APEX and the position in the source will give a clue as to where. You should also run the page in Debug mode and look at the trace to see if there's any clues there.
    If it's visible in the generated page source but not the original then it's produced by something dynamic in the page. Possibly some JS lingering from the previous theme?

  • JCR-Which of the below content models holds good?

    Website structure in CRx:
    website
        English(Page)
           About us(Page)
           Physicians(Page)
           Specialities(Page)
           News(Page)
           Clinical Trails(Page)
           Jobs(Page)
       database(node-nt:unstructured)   
           physicians(node-nt:unstructured) 
    1.Which location to store physician1 is appropriate? Under website->English->Physicians(page) or under website->database->physicians?
    2.Which of the following three content models is more appropriate?
    speciality and language in path to physician
    1.database->physicians->language->speciality->physician1(lastName, firstName, sex, location)
    2.database->physicians->speciality->language->physician1(lastName, firstName, sex, location)
    speciality and language as properties of physician:
    3.database->physicians->physician1(lastName, firstName, sex, location, speciality, language)
    Thanks,
    Sravan.

    it is better to have it under database, as you would be giving permission to the content nodes to all user, it would be easier to maintain the db nodes separately,
    i would also suggest giving speciality and language as tags and adding these tags to ur physician1 node, also if you feel there will be more than 100 physicians it would be better to create more tree structure inside that
    you could also check this links
    http://dev.day.com/docs/en/cq/current/howto/model_data.html
    http://dev.day.com/docs/en/crx/current/developing/data_modeling.html
    http://dev.day.com/content/ddc/blog/2011/05/efficient_management.html

  • Why can't I download "Added Content for Adobe Premiere Elements 10"?

    I have purchased the dual-packaged Adobe Photoshop elements 10 and Adobe Premiere Elements 10 - Then when launching the Premiere Elements I get a message to download the "content for Adobe Premiere Elements"
    I have tried to do this for a couple of hours now, and I have no idea why I can't get a link.... I keep getting referred to pages with no links at all...
    Can anyone help?.

    Actually, I DOWNLOADED this "bundled" program (as opposed to retail)... and of course, I have no CD's....
    But I did figure it out - The "buyer-user" should log in to Adobe and go to https://store1.adobe.com/cfusion/store/html/index.cfm?store=OLS-US&event=displayDownloads There UREKA I found it... and it installed fine.
    Hower, I do think your lay-out of the help pages on this matter could be improved.
    But thanks again for taking the time to answer and warm regards,
    Bill

  • Using ElementDecl to access the content model

    Hi,
    Suppose I have an DTD that looks like the following:
    <!ELEMENT a (c*, d, e?, f+)>
    <!ELEMENT c (#PCDATA)>
    <!ELEMENT d EMPTY>
    <!ELEMENT e (#PCDATA)>
    <!ELEMENT f (g?, h+)>
    <!ELEMENT g EMPTY>
    <!ELEMENT h ANY>
    How do you get the content model for each one of the elements
    declared in this dtd? I tried to use the following code, but I
    get strange results.
    // Suppose edNode is the root of the DTD
    org.w3c.dom.Node cmNode = edNode.getParseTree();
    if (cmNode != null) {
    System.out.println("edNode = "+edNode.getNodeName()+" -
    "+edNode.getContentType());
    System.out.println("Children...");
    cmNode = cmNode.getFirstChild();
    while (cmNode != null) {
    System.out.println("cmNode = "+cmNode.getNodeName()+" -
    "+cmNode.getNodeType());
    cmNode = cmNode.getNextSibling();
    Thanks in advance,
    Renilton
    null

    Renilton Oliveira (guest) wrote:
    : Hi,
    : Suppose I have an DTD that looks like the following:
    : <!ELEMENT a (c*, d, e?, f+)>
    : <!ELEMENT c (#PCDATA)>
    : <!ELEMENT d EMPTY>
    : <!ELEMENT e (#PCDATA)>
    : <!ELEMENT f (g?, h+)>
    : <!ELEMENT g EMPTY>
    : <!ELEMENT h ANY>
    : How do you get the content model for each one of the elements
    : declared in this dtd? I tried to use the following code, but I
    : get strange results.
    : // Suppose edNode is the root of the DTD
    : org.w3c.dom.Node cmNode = edNode.getParseTree();
    : if (cmNode != null) {
    : System.out.println("edNode = "+edNode.getNodeName()+" -
    : "+edNode.getContentType());
    : System.out.println("Children...");
    : cmNode = cmNode.getFirstChild();
    : while (cmNode != null) {
    : System.out.println("cmNode = "+cmNode.getNodeName()+" -
    : "+cmNode.getNodeType());
    : cmNode = cmNode.getNextSibling();
    : Thanks in advance,
    : Renilton
    You code only descends to the first child node below the
    root and processes only its sibling nodes. It never descends
    below that layer to the child nodes below. Your code should
    have another loop to correct this.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Access DTD content model from c++?

    Hi,
    I have seen how you can parse a DTD using the parseDTD method in the Java parser. Also there are functions for retrieving DTD information in the C parser. However the C++ parser can only return the entities and notations declared in the DTD, not the element declaration or content model.
    How can I access it using C++? Is it just undocumented or is it not implemented yet? If its nto implemented are Oracle planning on implementing it soon?
    Thanks in advance,
    uniken

    Hi.
    You are saying that there are methods
    in the XDK for C that can access a parsed
    DTD structure and get information about
    ELEMENT tags in it. I haven't found any.
    Can you please tell me what these methods
    are? I need to get the ELEMENT information
    but all I can get are NOTATION and ENTITY
    tags.
    I would appriciate your help.
    Thank you,
    A. Volnov
    null

  • DTD Content Model Parse Tree

    Is there any documentation available that explains the Content Model Parse Tree for any simple DTD ? I am having trouble to understand the mnemonics (*, + etc.) while traversing a root node.

    Hi.
    You are saying that there are methods
    in the XDK for C that can access a parsed
    DTD structure and get information about
    ELEMENT tags in it. I haven't found any.
    Can you please tell me what these methods
    are? I need to get the ELEMENT information
    but all I can get are NOTATION and ENTITY
    tags.
    I would appriciate your help.
    Thank you,
    A. Volnov
    null

  • Content model and transport in system using different repository

    Hi experts,
    In our development environment, we generated a content model for incoming post document
    storing in a content server.
    As the content model have been generated for this specific repository, I assume that this content model
    will not work properly in an other environment using a different repository if we transport it. Am I correct?
    Is it possible to change directly the content model assignment to a new repository in the target environment?
    Or we have to generate a new content model in the target system using the initial content model as a template and assigning the
    correct repository? In this case, we will have to maintain each content model in all the differents environments...
    What are the best practises to handle this situation?
    Thanks in advance for your help !
    Regards
    Frédéric

    Dear Frederic,
    It is possible to transport such model. You will just need to change the setting of the storage category to point to the new content server in the new system- transaction OACT. Storage category is attribute called STORAGE_CAT in the virtual PHIO class of the content model( ends with **V).
    Please note that the content model should be transported in its creation language.
    Best Regards,
    Pragya

  • IMPORT_FUNCTION in content model for Records management

    Hello!
    I customized my own content model for documents with my own attributes, it works fine, and everything is ok... but when i define property IMPORT_FUNCTION in DMWB for my content model, it has dump with error "DP_ERROR_GENERAL" when i'm trying to save the new created document...  Even if i set function without code for attribute IMPORT_FUNCTION, it still has dump... why?
    i need to get info about uploaded file, such as path and etc... i have found this information only in this function.
    Thanks for any help...

    Hi Luk,
    The linkage of module may be very critical. But if you have a requirement for attaching the documents like photo,certificates or other documents related to employee to records management then you can create a radio button to recodrs management screen with help of abap'r and directly attach these documents to respective records management screen.
    for linkage it may not feasible or much critical.
    Hope this will help.
    Regards,
    Ravindra

  • Add new Content to a html/plain file

    Hi Everybody,
    how can is it possible to add new content (a new line) to a existing html/plain file? I have two methods, with the first one i can create a file but with the second one it is not possible to add new content to the just created file. What is my mistake?
    Create a file (works!)
    IResourceContext ctx1 = buildResourceContext();     
    RID rid1 = RID.getRID("/SP");     
    final IResourceFactory aResourceFactory = ResourceFactory.getInstance();
    aCollection =(ICollection) aResourceFactory.getResource(rid1, ctx1);
    String out = new String("<h3> Welcome </h3>");     
    filedataStream = new ByteArrayInputStream( out.getBytes() );
    fileContent =
         new Content(
           filedataStream,
           "text/html",
           filedataStream.available());
    if (aCollection != null) {          
         fileResource = aCollection.createResource(
                       "NewFile.html",
                       null,
                       fileContent );
    Add new Conent (doesn't work)
    private void addNewContentToFile(){
    IResourceFactory factory = ResourceFactory.getInstance();               
    IResourceContext ctx = buildResourceContext();                         
    RID rid = RID.getRID("/SP/NewFile.html" );
    IResource resource = factory.getResource(rid,ctx);
    String out = new String("<h3> my New Line </h3>");
    ByteArrayInputStream data = new ByteArrayInputStream(out.getBytes());
    IContent newContent = new Content(data, "html/plain", data.available());
    resource.updateContent( newContent );
    regards,
    Seed
    Edited by: seed_mopo on Oct 28, 2008 10:49 AM

    Sorry, there was an exception (NoCheckOut...) --> Versioning = false.

Maybe you are looking for

  • Help needed in passing values

    Hi all, I'm new to jsp. So if possible pls help me. I have a page(say first.jsp) which has a link to another jsp(say sec.jsp). In sec.jsp i'm setting a value in session. When i'm clicking a use/done button in sec.jsp...I want to come back to first.js

  • Fiscal representative

    Dear all, The company for which I work has a fiscal representative in another country (the legal entity is in Belgium, the fiscal representative is in the Netherlands). We are trying to find out a way how to manage this in SAP without creating new do

  • Scanning in editable text mode

    When I scan a document using the editable text mode, the previewed copy comes up correct.  When I save the copy to my desktop or document file, the copy become ureadable because the lettering changes.  Rich text sends the document to Microsoft Word w

  • Reduce PDF size

    How can I reduce the size of my pdf?  The reduce size option is grey out, is there any other way to reduce a large pdf?

  • OBISEOne Administration Tool Doesn't Startup

    Hi everyone, I am having a really strange problem. 3 hours ago everything was Ok but now when I try to Start the Administration Tool it does not start up. On the task manager exe is seen for a moment and it dissappears suddenly. Can anyone please exp