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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • [svn] 1648: This checkin makes public our modifications to Velocity 1. 4 which make the parse tree serializable.

    Revision: 1648
    Author: [email protected]
    Date: 2008-05-09 14:24:44 -0700 (Fri, 09 May 2008)
    Log Message:
    This checkin makes public our modifications to Velocity 1.4 which make the parse tree serializable.
    Velocity has a slow parser and template lookup mechanism so we save 25% time in the MXML compiler by only using merge at runtime and loading a serialized form of the parse tree from the classpath.
    There's a simple class flex.util.SerializedTemplateFactory that has a main method to serialize a template and a load method to load a template.
    Another significant change is that macros and their arguments are not parsed at runtime; we parse them once at parse time and they are just evaluated at runtime. The original Velocity liked to concatenate tokens in its production rules and then re-parse at runtime.
    It turns out that re-serializing the parse trees is still pretty expensive, so the next step would be to codegen a Java class that does all the velocity actions without any of the Velocity runtime necessary.
    Bugs: -
    QA: No
    Doc: No
    Reviewer: Jono
    Modified Paths:
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/app/VelocityEngin e.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/Runtime.j ava
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/RuntimeCo nstants.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/RuntimeIn stance.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/RuntimeSe rvices.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/RuntimeSi ngleton.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/Velocimac roFactory.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/Velocimac roManager.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/directive /Foreach.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/directive /Include.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/directive /Macro.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/directive /VMProxyArg.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/directive /VelocimacroProxy.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/Pa rser.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/Pa rser.jj
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/Pa rser.jjt
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/To ken.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/bu ild
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTComment.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTDirective.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTEscape.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTEscapedDirective.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTIdentifier.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTMethod.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTNumberLiteral.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTReference.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTSetDirective.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTStringLiteral.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTText.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTWord.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/Node.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/SimpleNode.java
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/util/introspectio n/Info.java
    Added Paths:
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/flex/
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/flex/util/
    flex/sdk/trunk/modules/thirdparty/velocity/src/java/flex/util/SerializedTemplateFactory.j ava

    Dave,
    First of all, THANK YOU! THis is extremely timely and helpful; exactly what I've been looking for.
    I'm with you all the way until the end, right here:
    wrap the elements into the required delimiters.
    my $returnValue = sprintf('"%s" <%s> (%s) [%s]', $displayName, $emailAddress, $username, $userIdentifier);
    return ETC, ETC
    Did this part lose some formatting in the post? Where are the line breaks? Is it one unbroken string?
    Dual 2GHz G5   Mac OS X (10.4.6)  
    Dual 2GHz G5   Mac OS X (10.4.6)  
    Dual 2GHz G5   Mac OS X (10.4.6)  

  • Records Management: Content Model format in the Records Browser

    I am new to Records Management.  I have added attributes to a Content Model and I want to modify how it is displayed in the Records Browser of Records Management.  How do I do this?

    Hi,
    Try this.
    SPRO--> SAP NetWeaver --> Application Server --> Basis Services --> Records Management --> Customizing for Attributes (Property Unification) --> Create / Change Attributes Descriptions.
    Here you selec your Attribute Model ID and do changes.  Please reply this if your problem is solved by this.  Thanks.
    Munna.

  • Create content modell, logical/physical document class, TA CT04/cl02/dc10

    Dear experts,
    Im about to get to know the SAP DMS. Content Server is already running working as well as the content repositories. I now wanna set up a content modell for testing with knowledge provider.
    Im a bit confused about the different ways of doing that. What is actually the difference between creating a CHAR in TA ct04, creating a class in Cl02 with type 017 and the alternative of creating a content model with TA SRMCMCREATE or directly in the document modelling workbench.
    Once ive hopefully understood the difference how can i start actually creating / uploading real (physical documents) cause in dont understand what TAs cvn01n/02n/03n are for.
    There is a large number of function modules for kpro. Fo example when testing SDOK_LOIOS_CREATE i have to enter an RFC destination. What do i have to type in as RFC destination intending to store in content repositories of content server?
    I know thats more than one question at a time but i would be very pleased some of these get answered.
    Thanks a lot in advance.

    Dear Christian,
    I would like to start providing you information with CT04 question. Here the CHAR value is used for maintaining the type of classification characteristics. The CHAR entry stands for 'Character' type which
    means you can add alphabetical and numerical values to this classification characteristic. Transaction CT04 is normally used for creating classification characteristics. In CL02 you can create a class for
    classification and then add the characteristics to it. In the standard class type 017 is used for classifying document info records.
    Transaction CV01N/CV02N/CV03N are used in standard for document managment functionalities. Here you can create/edit/display your document info records. These document info records are like a frame for your original files which could be added to an info record and then checked into your Content Server.
    During this check in function the KPRO function modules are used too.
    For further information I would recommend you to see the SAP online documentation under http://help.sap.com.
    Best regards,
    Christoph

  • Implementation of a parse tree in Java (Urgent)

    How best can a parse tree be implemented in java, i have read some online information that suggest use of data structures, but i am still not clear on how to do it.

    Well, you need a tree. A logical way to structure a tree is out of "node" objects. A node presumeably will hold some data, and may also have one or more subnodes.
    So the root of your effort ought to go into designing the node - data it will hold, and getters and setters, and operations to walk the tree.

  • Accessing KM Content using Webdynpro Tree Application

    Hi,
    I want to create a webdynpro tree structure application which pulls out the KM Content into the tree Structure. How can i do that? Where can i give the KM path and make the KM documents reflect in the tree?
    Does any body have code samples related to this? Can anybody help me out in fixing this issue.
    Regards,
    Divya

    Hello,
    Here you have a sample to configure the environment, get access to KM and how to upload a file.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?quicklink=index&overridelayout=true
    Here, you have a sample code, where you instance a resource (a folder or file into KM repository) and you can do with it whatever you want.
    final IResourceFactory aResourceFactory = ResourceFactory.getInstance();
    RID rid = new RID(strRid); --> path where your are looking for your folders. "/documents", for instance.
    ResourceContext resourceContext = new ResourceContext(WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service"));
    IResource r = aResourceFactory.getResource(rid, resourceContext);
    Try and catch are missing, but that is the code to have an instance of a KM resource.
    Regards,
    David.

  • Displaying KM content using Webdynpro Tree Application

    Hi,
    I want to create a webdynpro tree structure application which pulls out the KM Content into the tree Structure. How can i do that? Where can i give the KM path and make the KM documents reflect in the tree?
    Does any body have code samples related to this? Can anybody help me out in fixing this issue.
    Regards,
    Leon

    Hi
    Try these
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f02b492c-7d76-2a10-86aa-e11e8388fde8
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3095f14c-29c5-2b10-f69e-edcb6f0f1367
    Best Regards
    Satish Kumar

  • What does it mean when the usecounts of Parse Tree for a view is incrementing when a select query is issued against the view?

    I'm using SQL Server 2008 R2 (10.50.4033) and I'm troubleshooting an issue that a select query against a specific view is taking more than 30 seconds consistently.   The issue just starts happening this week and there is no mass changes in data.  
    The problem only occur if the query is issued from an IIS application but not from SSMS.  One thing I noticed is that sys.dm_exec_cached_plans is returning 2 Parse Tree rows for the view -  one created when the select query is issued
    1st time from the IIS application and another one created when the same select query is issued 1st time from SSMS.   The usecounts of the Parse Tree row for the view (the IIS one) is increasing whenever the select query is issued.  The
    usecounts of the Parse Tree row for the view (the SSMS one) does not increase when the select query is issued again. 
    There seems to be a correlation between the slowness of the query and the increasing of the usecounts of the Parse Tree row for the view.  
    I don't know why there is 2 Parse Tree rows for the view.  There is also 2 Compiled Plan rows for the select query.  
    What does the Parse Tree row mean especially the usecounts column?

    >> The issue just starts happening this week and there is no mass changes in data.  
    There might be a mass changes in the execution plan for several reason without mass changes in data
    If you have the old version and a way to check the old execution plan, and compare to the new one, that this should be your starting point. In most cases you don't have this option and we need to monitor from scratch.
    >> The problem only occur if the query is issued from an IIS application but not from SSMS.
    This mean that we know exactly what is the different and you can compare both execution plan. once you do it, you will find that they are no the same. But this is very common issue and we can know that it is a result of different SETting while connecting
    from different application. SSMS is an external app like any app that you develop in Visual studio but the SSMS dose not use the Dot.Net default options.
    Please check this link, to find the full explanation and solutions:
    http://www.sommarskog.se/query-plan-mysteries.html
    Take a look at sys.dm_exec_sessions for your ASP.Net application and for your SSMS session.
    If you need more specific help, then we need more information and less stories :-)
    We need to see the DDL+DML+Query and both execution plans
    >> What does the Parse Tree row mean
    I am not sure what you mean but the parse tree represents the logical steps necessary to execute the query that has been requested. you can check this tutorial about the execution plan: https://www.simple-talk.com/sql/performance/execution-plan-basics/ or
    this one: http://www.developer.com/db/understanding-a-sql-server-query-execution-plan.html
    >> regarding the usecount column or any other column check this link:
    https://msdn.microsoft.com/en-us/library/ms187404.aspx?f=255&MSPPError=-2147217396.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

Maybe you are looking for