Validation of TLF-Markup with DTD?

Hi everyone,
we're using TLF to display structured text on the client side with Flex. The text comes from a database where it is stored in our own XML-Markup, transformed on the server side (java server) to TLF-Markup and then sent to the client.
Is there any possibility to make sure that the transformation on the server into TLF-XML results in a valid syntax so that the RichText component can display it? Something like a DTD for the TLF-Markup?
Thanks in advance!

Object Hierarchy
Parent ->
Child
TextFlow
div
p
a
tcy
span
img
br
tab
list
li
g
TextFlow
no
no
no
no
no
no
no
no
no
no
no
no
div
yes
yes
no
no
no
no
no
no
no
yes
yes
no
p
yes
yes
no
no
no
no
no
no
no
yes
yes
no
a
no
no
yes
no
yes
no
no
no
no
no
no
yes
tcy
no
no
yes
yes
no
no
no
no
no
no
no
yes
span
no
no
yes
yes
yes
no
no
no
no
no
no
yes
img
no
no
yes
yes
yes
no
no
no
no
no
no
yes
br
no
no
yes
yes
yes
no
no
no
no
no
no
yes
tab
no
no
yes
yes
yes
no
no
no
no
no
no
yes
list
yes
yes
no
no
no
no
no
no
no
yes
yes
no
li
no
no
no
no
no
no
no
no
no
yes
no
no
g
no
no
yes
yes
yes
no
no
no
no
no
no
yes
For formats, it's more comlicated.  You can ask some specific formats.

Similar Messages

  • Validating generated XML file with DTD

    Hello all,
    my requirement is to test the XML file with its DTD.
    we are creating an XML file, before writing it on the application server , we need to test it with its DTD.
    i found one method set_validating in the interface if_ixml_parser , for validating XML file, but not getting an idea how to use it, like how to link the DTD to XML etc.
    if i try to use the above method am getting the following error:
    Unable to retrieve the external entity 'd:\dtdfile.dtd'.
    where 'd:\dtdfile.dtd' is the path of the DTD file included in the Doctype of the XML file.
    Please help me to solve this.
    Thx in advance.

    Hello,
    Did you find your answer ?
    I know how to validate an XML file an internal DTD, but not an external one... If you know, can you pelase advice ?
    If you didn't found yet, you need to use method get_reason() to get the description of the error.
    best regards,
    Gilles.

  • XML validation with DTD in java 1.5 not supporting

    Hi,
    I am facing a problem regarding validation of xml file with DTD tag in it.
    I have disabled the parser through setValidating(false) method.
    xml file is not parsed in JRE 1.5.but it is parsed in JRE 1.6.
    Why this is showing such a behavior?
    I have used xerces 2.9.0,xml-api.jar and other jar regarding XML api but still it is giving error.
    please help me.
    please provide a jar file name or its issue resolution in jre 1.5 or 1.4.

    thanks for your prompt reply.
    I required that it should be completely disabled in jre 1.5(jdk1.5 or 1.4).
    I am using DOM Parsing.I have currently disabled with follwowing method,
    builderFactory.setValidating(false);
    builderFactory.setFeature("http://xml.org/sax/features/validation",
         false);
         builderFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false);
         builderFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",false);
         builderFactory.setFeature("http://xml.org/sax/features/external-general-entities", false);
         builderFactory.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
         factory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
    in 1.6 it is working fine but I required that i have to disabled it.but it is giving a error in jre1.5.
    Exception in thread "main" java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
    I just want to disable the parsing in jdk version 1.5 or 1.4
    thanks in advance
    anand

  • SAXParser inside unsigned Applet: Validation with DTD

    Hello!
    I am trying to run an applet that performs some XML parsing ideally with DTD validation.
    The issue is that I can't access files directly, but using tricks such as Class.getResourceAsStream() which I can do fine for my XML file my XML file. But then this xml has a reference to test.dtd (also in the jar file).
    When the parser runs, it tries to open test.dtd "illegally" and a security exception is thrown. Any advice in how to avoid this?
    BTW, I have already thought of:
    * Traslating the DTD to a Schema
    * Disabling validation
    Would work, but not the solution I'm looking for :)

    It doesn't seem like the SAXParser allows it, but if you use an XMLReader, you can specify an EntityResolver class.
    The EntityResolver is called when SAX wants to open a resource. Your code can supply an InputSource to point to the resource you want.
    Dave Patterson
    Message was edited by:
    d.patterson

  • HOW TO KNOW VALID XML WITH DTD ? WITHOUT PARSING  ?

    i am creating the xml file
    i need to validate the xml with DTD to confirm is it valid or not ?
    with out parsing...
    could you tell me how ?
    Durga

    without parsing u cant do it..

  • Validating xml with dtd

    Hi,
             I have found a piece of code through google, to validate an xml file with an external dtd file. which is
               function validateDocument()
                    xmlDocumentObject = new ActiveXObject("microsoft.XMLDOM")
                    xmlDocumentObject.onreadystatechange = changeHandler
                    xmlDocumentObject.load('C:\\My.xml')
                function changeHandler()
               and for that we need to a import i.e  #import "C:\WINDOWS\system32\msxml4.dll"
              here when i try to import "msxml4.dll" in Acrobat javascript (js) file, it is giving error, application exits.
               How can i import dll in Acrobat javascript to get some functionality, or if not
              What someother way to achieve this(To validate xml with dtd file).
             This is totally making me crazy, please someone help me on this issue.
    thanks in advance.

    thanks Leonard,
             But my problem is i have an xml(i created that using acrobat javascript)and a dtd file, i want validate xml file with that dtd, using acrobat or some other way.  How can i validate xml with dtd, please help me.

  • XML validation with DTD

    Hi Team,
    I want to validate the XML content with DTD refered in the XML. I have problem now is my DTD are present in a jar file. How do I need to set systemid to the input source so that it works.
    <!DOCTYPE test SYSTEM "test.dtd">
    SAXParserFactory factory = SAXParserFactory.newInstance();
    factory.setValidating(true);
    factory.setNamespaceAware(true);
    inputSource.setSystemId("path");
    SAXParser parser = factory.newSAXParser();
    XMLReader reader = parser.getXMLReader();
    reader.setErrorHandler(new XmlValidationErrorHandler());
    reader.parse(inputSource);
    Regards
    Richard

    i believe the best way to handle that would be to set the EntityResolver on the XMLReader to your own implementation which loads the DTD from the jar.

  • Validating TLF data with a schema?

    According to the following post rdermer claims that there isn’t a XSD for TLF markup:
    http://forums.adobe.com/message/2223205#2223205
    But what other ways can we validate our TLF data?  And excuse my ignorance, but why can't I use a XSD to validate TLF data in a XML file?

    I think you could use a schema if you made one, I just don't know of one that already exists that you could use for this purpose.
    - robin

  • Import TLF markup into InDesgin CS5 or CS5 Server

    Can anyone tell me if there is a way to import the TLF markup into InDesign?  Is it possbile to translate the TLF markup into an IDML format?  I need to push text from a Flex app into InDesign while preserving all formatting.  Would it be better to use the TLF markup or the TLF html export option?  Any direction you could provide would be greatly appreciated.

    It is possible to translate TLF markup into IDML, but I think you'd have to write it yourself. I haven't done it, but I would think you could write an XSLT script for the conversion. If you take this path, and you're feeling generous, you could post the resulting XSLT back here and earn gratitude from other folks with the same problem.
    Using HTML as the mechanism is problematic, but worth considering. First issue is that TLF doesn't export regular HTML, it exports a special TextField-style HTML, and much of the formatting (not all) is stripped out, although things that TextField could do are represented. Also, InDesign doesn't import HTML (I don't think it does) although you may find a plug-in that can. If I were to use HTML, I would expect that getting it from TLF to some other text based tool like Microsoft Word that understands HTML, and then copy it out of Word and paste it into InDesign might work. I wouldn't expect all the formatting to come through though.
    Hope this helps,
    - robin

  • How to convert text file into xml file format with and check that with DTD

    I have an text file with | seperator . I have to convert this to an xml file and check with DTD present with me..
    plz help me out

    can i get some code that how to compare the xml with dtd or just give the DTD name with an XML

  • Notes on TLF Markup

    I wrote some notes on TLF markup and published them on the TLF blog.
    http://blogs.adobe.com/tlf/2009/09/tlf-markup-overview.html
    It's pretty basic - the goal is to give you the tools to understand the markup.
    Hope it helps!
    Richard

    It reads like this is a problem on the iOS side. On your iPhone or iPad launch the notes app, in the top left corner tap the button until you are on the Accounts page and see if iCloud is an option. If it is select that option and new notes will push to your Mac. If its not close the Notes app and go to Settings > iCloud > Notes > Toggle On. The option will now be in the notes app as described above. Side note: You may be asked to set up an iCloud email if you haven't already. Hope that helps.

  • Has anybody tried creating and validating a XML doc with XML Schema?

    Hi,
    Has anybody tried creating and validating a XML doc with XML Schema?

    With XMLBeans, an XML document may be created from and validated with an XML schema.

  • To read XML file with DTD in SSIS

    Hi,
    My SISS package needs to read .mak file and store it in a sql tables.
    I am receiving xml file content in mak file extension with DTD. So I couldn't read through XML source shows error DTD is prohibited in this document. After removing DTD by manually, the xml file has multiple outputs.
    Please guide me how to remove DTD by coding and also I don't have xsd and xsl file for this only mak file.
    Thanks.

    Thanks Visakh for your answer.
    I have tried in XML task which described in the thread. But I couldn't remove DTD file, I am getting following error,
    [XML Task] Error: An error occurred with the following error message: "Could not find a part of the path 'C:\Program Files (x86)\FAST\Builder\bin\makefile.dtd'.".
    As I said before I am receiving in .mak file extension. The beginning of file content is like below,
    <?xml version='1.0'?>
    <!DOCTYPE makefile SYSTEM "file:///C:/ProgramFiles
    (x86)/FAST/Builder/bin/makefile.dtd"[
    <!ENTITY % default-content-type "'text/html'">
    <!ENTITY prjdir "G:\cdrom\Employees_2014_02">
    <!ENTITY imgdir "G:\images\forms\gifs">
    <!ENTITY foddir "G:\SOFT\FORMS CD\Feb14">
    <!ENTITY ccdir "Y:\Content">
    ]>
    <makefile>
    &fsysdse;
    <content-collection id="b1" title="Employers and Employees" filename="&ccdir;\Employees_2014_02.nfo" password=""> ....
    After replace all variable (prjdir,imgdir,fodder,ccdir) into values specified in the entity tag, I removed above underlined part - so the xml file is ready without DTD part and able to use in
    XML source. I have received 6 outputs from XML source.
    My question is how to do this manual work in SSIS? It’s not only one file, so many files needs to updated SQL tables automatically so everything should be done by coding.
    Please guide me in which way I can achieve this?
    If you want to do this in SSIS
    one way is to use Script Task to parse the file and remove the DTD part.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • TLF markup to PDF export

    Hello all,
    I am looking for a simple and official way to convert TLF markup (even FXG if possible, but that is not mandatory) to PDF.
    My logic: these are both Adobe products and a bridge between these two 'formats' must be possible .... but now I have doubts.
    Thanks in advance,
    Cedric

    Please post the question on http://forums.adobe.com/community/acrobat to confirm your idea.

  • ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.

    Im trying to connect to my azure subscription via powershell on my machine but keep getting the following error when i run a command:
    ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated  with this subscription.
    The steps i have taken so far are:
    1. get settings file
    Get-AzurePublishSettingsFile
    2. Import settings file
    Import-AzurePublishSettingsFile -PublishSettingsFile "C:\Users\me\Downloads\credentials.publishsettings"
    3. I then run Get-Azuresubscription with the following output:
    SubscriptionId : 699385c3-b83a-44af-a651-bxxxxxxxxx
    SubscriptionName : Windows Azure MSDN - Visual Studio Premium
    Environment : AzureCloud
    SupportedModes : AzureServiceManagement
    DefaultAccount : 3B68902B5170D5EC91BFCBE4CC27E2A8838F61C4
    Accounts : {3B68902B5170D5EC91BFCBE4CC27E2A8838F61C4, 26B118D7F3C598FB8FE9CDC49AB5DE5E450C967C,
    03E1E1F0B8C7717F11FB58A14138C35524AB3F8D, 9A2E1FD267ECCC0E9B8C151BD931FC4824E89184...}
    IsDefault : True
    IsCurrent : True
    CurrentStorageAccountName :
    TenantId :
    I run Get-AzureAccount and get the following:
    Id Type Subscriptions Tenants
    3B68902B5170D5EC91BFCBE4CC27E2 Certificate 699385c3-b83a-44af-a651-xxxxxxxxx
    A8838F61C4
    26B118D7F3C598FB8FE9CDC49AB5DE Certificate 699385c3-b83a-44af-a651-xxxxxxxxx
    5E450C967C
    03E1E1F0B8C7717F11FB58A14138C3 Certificate 699385c3-b83a-44af-a651-xxxxxxxxx
    5524AB3F8D
    9A2E1FD267ECCC0E9B8C151BD931FC Certificate 699385c3-b83a-44af-a651-xxxxxxxxx
    4824E89184
    85AD02CB8EB8AB20CF2C44FD9D19F2 Certificate 699385c3-b83a-44af-a651-xxxxxxxxx
    9B6BB2FCD2
    Finally, when i try to run Get-AzureSQLDatabaseServer, to list my databases, i get this error:
    WARNING: Client Session Id: '5911f288-7b02-4c94-bb9d-37b9ea5fc187-2015-01-13 11:47:54Z'
    WARNING: Client Request Id: '3e5f7ea9-092a-46fd-a6a6-6916b9161b77-2015-01-13 15:25:41Z'
    Get-AzureSqlDatabaseServer : ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated
    with this subscription.
    At line:2 char:1
    + Get-AzureSqlDatabaseServer
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Get-AzureSqlDatabaseServer], CloudException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Server.Cmdlet.GetAzureSqlDatabaseServer
    I would appreciate any help in figuring out what i am doing wrong here.
    Thanks,

    OK. That won't work in Azure Automation though, as mentioned above. OrgID (recommended) or cert-based auth will need to be used. PublishSettings file won't work.
    Correct, but the original question was:
    <Quote>
    Im trying to connect to my azure subscription
    via powershell on my machine 
    </Quote>
    I wanted to test automation script's core functionality without having to wait for the very very long time taken for an automation runbook
    to spin up, actually run and provide output (can often take 2+ minutes for a trivial script). Although i cant run Workbooks on my pc, i can run the core modules (view virtual machines, databases etc) to ensure my logic is sound.

Maybe you are looking for

  • Unable to display the Traffic Lights in a simple Classical Report.

    Hi to all..             I'm creating a simple Program where i need to display traffic lights based upon the the value i enter into it.. i have used AS ICON and type-pools ICON too in my program... but it is not displaying traffic lights.. can anyone

  • Display of Compounded InfoObject in Business Objects Variable screen

    Hi, The Cost Center is compounded with Controlling Area in BEX Query and there is filter on that.  After running the query, in the select options, it will display Cost Center in the possible values in the selections. When this query is used in BO Uni

  • SUIM - Track Role Changes Please Help

    Dear Friends, I want to know is there anyway or any report that track the changes done to a role for last 3 months - addition/deletion of tcode and Auth. Object Values Changes and when it was changed. I used SUIM (All Change Documents (Technical View

  • CIC Activity and Sales Order Link Tables?

    Hello Experts, Can somebody let me know the CRM Customer Interaction Center(CIC) activity and its leading Sales Order Link tables or the data model? If somebody could point me to CRM CIC Data model it would be real helpful. If you have any document p

  • I can not open any downloads sent to my computer,

    Please help me.  I can not open any downloads sent to my computer.  Every email with a download, comes up with "...contains a virus..."  I think it might be a firewall (don't know that for a fact) but it was happening before I installed the Fix-It Ut