Defining dynamic XML
Hi,
i have created an application in which a the user is given an option of selecting a map and its relevant data. now depending on the values of data, the map is to be filled with colors with each color representing a specific range of data.
now the user has to select the map, data and the colors he wishes. an XML file that indicates the user selection is defined on the client side and transmitted to a server. the server has to perform the actual processing to display the final output.
my questions are:
1. how can i define a XML file that dynamically represents the user data. ie the XML file that i am defining should reflect the user's selection ie the user may select say map1 from a list of 4 maps and a text (data)file say file 1 from a list of 4 data files.
2. is it advisable to use a servlet or JSP to interpret the XML file and how is this interpretation done?
3. are there any sites on the web that explain how a servlet/JSP interprets an XML file to perform manipulation?
thanks in advance
The simplest solution is probably to generate the XML itself from a JSP. Just do...
<%@page type="application/xml"%>
<root-element>
</root-element>That way you keep the structure without losing the JSP functionality.
I've also seen Velocity templates used to the same effect, and also there are entire systems build around XML processing such as Cocoon, which is always something to look into if you're using "enough" XML to warrant it.
Similar Messages
-
Why does my Adobe Dynamic XML Form (*.pdf) submit as data.xml
Hi, I have created a form and saved it as Adobe Dynamic XML Form (*.pdf) the form used to submit perfectly via email but today it keeps attaching to the email as in a data.xml format. What would cause this and how do I fix it.
P.S. I am a novice with LivecycleCheck the properties on your submit button. That is where you define the submission format.
-
Hi there,
I am looking for a solution to the following code which will work only for a particular table , what if i want it to work for all the tables where columns names and columns quantiry varry , is there any dynamic way to accomplish this?
---> here is code snippet
MyClob := '<root>' ||
'<row type="old">' ||
'<column name="REFTYPECODE" value="' || :old.REFTYPECODE || '"/>' ||
'<column name="REFTYPEDESC" value="' || :old.REFTYPEDESC || '"/>' ||
'<column name="CREATEDBY" value="' || :old.CREATEDBY || '"/>' ||
'<column name="CREATEDDATETIME" value="' || :old.CREATEDDATETIME || '"/>' ||
'<column name="UPDATEDBY" value="' || :old.UPDATEDBY || '"/>' ||
'<column name="UPDATEDDATETIME" value="' || :old.UPDATEDDATETIME || '"/>' ||
'</row>'
||
'<row type="new">' ||
'<column name="REFTYPECODE" value="' || :new.REFTYPECODE || '"/>' ||
'<column name="REFTYPEDESC" value="' || :new.REFTYPEDESC || '"/>' ||
'<column name="CREATEDBY" value="' || :new.CREATEDBY || '"/>' ||
'<column name="CREATEDDATETIME" value="' || :new.CREATEDDATETIME || '"/>' ||
'<column name="UPDATEDBY" value="' || :new.UPDATEDBY || '"/>' ||
'<column name="UPDATEDDATETIME" value="' || :new.UPDATEDDATETIME || '"/>' ||
'</row>'
||
'</root>';Have a read through the Oracle® XML DB Developer's Guide - online copies of all Oracle documentation is available via http://tahiti.oracle.com
Then explain your problem about building dynamic XML with a bit more detail. Why would you want to make the actual XML itself dynamic? The XML itself should follow a specific pre-defined template and then used to dynamically generate XML output as per this XML definition/template.
Or am I missing something here? -
How can you update the content of a textfield in a dynamic xml form from MSAccess and VBA
I am trying to use the code below to update a field in a dynamic xml form created by Livecycle.
I can read the field content but cannot change it.
What am I missing?
Thanks
R
Sub test()
Dim oPDF As AcroPDDoc
Dim FileDestName As String
Dim jso As Object
Dim ofld As Object
FileSrcName = "C:\Documents and Settings\My Documents\ADOBE Forms\NoVB.pdf"
Set oPDF = CreateObject("AcroExch.PDDoc")
Set jso = oPDF.GetJSObject
Set ofld = jso.getfield("form1.TopForm.Header.Subform1.Contact")
Debug.Print ofld.Value
ofld.Value = "HHH"
Debug.Print ofld.Value
oPDF.Save PSsavefull, FileSrcName
oPDF.Close
Set jso = Nothing
Set oPDF = Nothing
End SubYou need to research the difference between an AcroForm and an XFA form. You're trying to access a "Field" object, which is an AcroForm object. An XFA form does not have fields, it has nodes. The JavaScript you are using is specific to AcroForms and you are working with an XFA form.
-
Adobe Livecycle Designer ES 2 - Adobe Dynamic XML Forms?
How can you convert a dynamic XML form design in a static PDF Form design? I tried to save a dynamic XML Form as a static PDF Form, and then tried to preview it in Designer but the layout change scripts were working which should work only for dynamic xml forms and not for the static pdf forms. Please suggest another way to do it. Thanks in advance.
You use Master Pages to set layout that you want to use on multiple pages.
Design what you want in a Master Page and then assign it to the pages you want in Object>Pagination>Place: and choose On Page> whatever you called your Master Page. -
Adobe Reader for Android to work with dynamic XML PDF forms?
Any possibility that Reader for Android will ever work with dynamic XML PDF forms created by Abobe Acrobat Pro?
GoodReader ($4.99), ezPDF Reader ($2.99) and PDF Expert ($9.99) are well rated and support many more features.
Here a link for your reference: http://indesignsecrets.com/for-interactive-pdf-not-all-readers-are-equal.php -
Build a web gallery with amazing flash slideshows with dynamic XML files
Build a web gallery with amazing flash slideshows with dynamic XML files
Screenshot:
Features
Features
Transitions, zooming and panning effect You can choose from Random, Wipe from Left, Fade to White, Cross Expansion and other 60-plus transition effects. Zooming and panning effect is optional for advanced flash templates.
XML-driven This flash slideshow are XML-driven. The XML document allows more personalized controls over the flash.
Auto-playback and repeat mode The flash slideshow will play automatically after preloading, and it can repeat playback.
Dynamic customization Besides XML control, the advanced templates provide many more custom options, so that you can create slideshow that fits into your existing web design: width , height, border color, background color, thumbnail size, etc. More about dynamic customization
Usage and demo visit: http://webdesigndevelopment.blog.com...swf-xml-files/Please excuse the bump...
Anyone with a LR flash gallery that starts with slideshow in play mode?
Can it even be set to do this?
The only code in the style.xml that looks like it might be realted is line 12 <playOptions playMode="pause"/>, changing that to "play" does nothing.
Thanks,
Donnie -
How can i exclude information pages from being printed in a dynamic XML form?
Hi there,
i am building a dynamic XML form in Adobe LiveCycle Designer ES2.
In this form there are pages with information that help the end user fill out the form, but to use - those who process the forms after they have been sent to us - these pages with information are irrelevant.
Is there a way to tell the form to omit these pages when printing.
Currently i have set the pages mentioned to be only visable on-screen. But doing so results in an empty page being printed (only the master page information is visable.)
Any ideas how i can solve this issue?
Thank you.Create a new master page and set that page to visible screen only. Set your subforms to use that master.
-
Dynamic XML TAGS in PL/SQL
Hi I wish to have dynamic xml tags in pl/sql e.g. say i have a table xml_table with xml_tag and tag_value as two columns. Let us say it has a rows
XML_TAG = timezone
TAG_VALUE = UK
I want the output in the following format
<timezone>UK</timezone>.
Any ideas how to achieve it using ORACLE functions and not concatenate <> to the columns? Help would be much appreciated.This is a forum discussing questions related to Oracle Portal. I'd recommend you to take a look at XDB and XSQL, on Oracle's Web site at http://otn.oracle.com.
Hope it helps,
Peter -
Revision: 15972
Revision: 15972
Author: [email protected]
Date: 2010-05-08 07:31:24 -0700 (Sat, 08 May 2010)
Log Message:
ChromeLibrary: adding rudimentary support for loading plug-ins defined in XML.
Modified Paths:
osmf/trunk/libs/ChromeLibrary/.flexLibProperties
osmf/trunk/libs/ChromeLibrary/org/osmf/chrome/application/ChromeApplication.as
Added Paths:
osmf/trunk/libs/ChromeLibrary/org/osmf/chrome/configuration/PluginsParser.asrnair wrote:
I am trying to install Oracle 11g R2 on my windows 7, 64bit computer. After 42% of installation, it started showing some files are missing. Few of them are:
C:\app\User\product\11.2.0\dbhome_1\owb\external\oc4j_applications\applications\WFMLRSVCApp.ear
C:\app\User\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\WFMLRSVCApp.ear
C:\app\User\product\11.2.0\dbhome_1\owb\external\oc4j_applications\applications\WFMGRApp.ear
C:\app\User\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\WFMGRApp.ear
C:\app\User\product\11.2.0\dbhome_1\owb\bin\win32\owb.tmp
C:\app\User\product\11.2.0\dbhome_1\owb\bin\win32\setowbenv.tmp
C:\app\User\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\system-application.xml
And the final pop up winow says:
Database configuration Assistant:Info
*"Template General_Purpose.dbc does not exists. Please specify an exixting template for database creation"*
*"[INS-20802] Oracle Database Configuration Assistant failed"*
Details:
Cause:- The plug-in failed in its perform method
Action:- Refer to the logs or contact Oracle Support Services.
Following are the last few lines of the log file. Can anyone please help me to fix this problem?<snip>
the error has nothing to do with DBCA. DBCA was simply the last in a long string of victims.
Go back and read the instructions where you downloaded the install media. They state that the TWO zip files you download must be unzipped into the same directory. -
Adobe LiveCycle Dynamic XML forms & Apple iPad
Are Adobe LiveCycle Dynamic XML forms viewable/useable by Apple iPad and Apple phone or other mobile devices?
According to Adobe, you can with LiveCycle ES4. At least, that's how I read their blog post on ES4 Mobile forms support.
Of course, there have been several discussions started about this in the Adobe forums.
Re: Unable to view the form in Mobile which was created using LiveCycle
Re: I created a form using Adobe Livecycle, but I cannot open the form on Ipad or Samsung tablet pc.
Re: Trouble using form on Android and/or iOS devices
Re: help help...Making existing livecycle fillable form mobile(ios/android adobe reader) compatible
Hope these help. -
Dynamic XML PDF not importing fields
I have a PDF developed in Livecycle and saved as a dynamic XML.
My database is MS Access and from this I've exported a query saved as an XML file, a XSD schema and an XSL stylesheet. (files attached)
I'm trying to populate the PDF from the above mentioned files client-side. I have the fields set up to display in a table with repeating rows.
It seems that I've set everything up okay and I get no error generated in the log file when I preview the PDF in Livecycle, but, the fields are not
being generated.
I suspect maybe this is because I don't have the nested forms set up properly for a flowed subform. But I should get at least the first row generated
shouldn't I, if it is reading the nodes in the XML?
Attached is (a mock-up) of the PDF along with the XML, XSD and XLS. This form should flow to other pages when dynamically built and I'm hoping to
display the header on each page (the header will be on the Master Page -- it will contain site links, etc.)
I hope to not only import data to a PDF this way but also to export fields from the PDF in the same way for database edits...
Can anyone tell me what I'm doing wrong in the attached?
And, on another note... do all of the above need to be in the same folder together on the server or can I put the PDF in one folder and the XML, XSD
and XLS a different folder? (Or the PDF and XLS in the same folder and XML and XSD files in a different folder, etc.)...
Thanks for any reponses on this.
- ed
PS: Below is the XSD schema code (since I can only upload the 3 other files here)
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:od="urn:schemas-microsoft-com:officedata">
<xsd:element name="dataroot">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="WMS_x0020_BMI_x0020_Percentile_x0020_ZScore" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="generated" type="xsd:dateTime"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="WMS_x0020_BMI_x0020_Percentile_x0020_ZScore">
<xsd:annotation>
<xsd:appinfo/>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="LastName" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="255"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Firstname" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="255"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PreHeight" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PreWeight" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PreBMI" minOccurs="0" od:jetType="double" od:sqlSType="float" type="xsd:double"/>
<xsd:element name="PreBMIPercentile" minOccurs="0" od:jetType="double" od:sqlSType="float" type="xsd:double"/>
<xsd:element name="PreZScore" minOccurs="0" od:jetType="double" od:sqlSType="float" type="xsd:double"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>Sorry for the delay in replying to this post. I got stuck at a friend's from the weekend snow we had... and am finally back on my own computer.
Just before leaving Friday I found the problem with the form not displaying data fields read from the XML.
It's a bit embarrassing to admit but, per Steve's instruction here to change the form preview properties (file/form properties) (thanks, Steve!) - I changed the preview from 'print one-sided' to 'interactive' and noticed that I had not set up the link to the XML under 'Data File'. Duh! So, it is reading the data from the XML now.
However... For the form to display, I had to (under 'connection properties) take the XSLT file off. Under 'Connection Properties' the form is set up as XML Schema with the link to the XSD set up.
The problem now is that a few of the dynamic fields are numbers. These number fields in the database only have two digits to the right of the decimal point (as in 93.79) but when the form loads these fields in the table in preview mode these fields contain 8 digits to the right of the decimal point (as in 93.79362082). I don't know why this is except that maybe it is because it's no longer reading from the XSLT file. All I want it to do is read the field exactly as it is in the database...
The table on the form doesn't display as it should either. The table expands with the rows its presenting but this runs to the very bottom of the page and doesn't flow to the next page. I've tried changing the size of the 'root' form on the Master page as well as the size of the 'parent' subform of the table subform but the table still runs to the bottom of the page... I'll keep playing around with this until I fix it unless someone can point me in the right direction...
Thanks for any leads on this...
(new corrected file attached)
Graham, this stuff really is interesting! These handful of files working together to build a dynamic PDF, reading the database XSD schema, an XML file and the XSL file as well as throwing in some Javascript functions is really cool... I'm also (hopefully) planning to have Cold Fusion query the database, depending on the login person's admin privilages, parse the fields from the database and build the XML file from this data 'on the fly' at login... Quite a lot going on in the background here to build the PDF! (I wish I could answer your question about the stylesheet but, obviously from the above, I'm a novice at this - I'm new at this and trying to grope my way around this stuff in the dark. These forums have been helpful as well as googling questions, but, there is still a learning curve here. I'm pretty rough with Javascript as well and that's a big feature of this stuff...)
Thanks to anyone for direction on getting this file to display properly and the number fields to show the same as in database...
- ed -
Dynamic XML with Weblogic ?
hello all !!
May be this question is already answered, and sorry for that, but here again !
I am trying to use Weblogic server, in order to process XML files, this files
make a query to my Oracle Data Base, Before this I was using Cocoon (apache) to
generate the dynamic XML with the query's result, is there a way to make the same
thing with Weblogic ? anybody know how to do it ? do yu have a simple example
? here is a sample code that I use with cocoon.
<?xml version="1.0" ?>
<?cocoon-process type="xsp"?>
<xsp:page language="java" xmlns:sql="http://www.apache.org/1999/SQL"
xmlns:xsp="http://www.apache.org/1999/XSP/Core"
xmlns:request="http://www.apache.org/1999/XSP/Request">
<page title="SQL Search Results">
<sql:execute-query>
<sql:driver>oracle.jdbc.driver.OracleDriver</sql:driver>
<sql:dburl>jdbc:oracle:thin:@IP_Address:1521:cta</sql:dburl>
<sql:username>User</sql:username>
<sql:password>Password</sql:password>
<sql:doc-element>My_table</sql:doc-element>
<sql:row-element>record</sql:row-element>
<sql:query>select * from My_table</sql:query>
</sql:execute-query>
</page>
</xsp:page>
Thanks a lot for your help !
Gustavo Mejia
INFOTECSince Cocoon is a servlet, just install it in Weblogic.
"Gustavo Mejia" <[email protected]> wrote in message
news:3b5ca3fa$[email protected]..
>
hello all !!
May be this question is already answered, and sorry for that, but hereagain !
>
I am trying to use Weblogic server, in order to process XML files, thisfiles
make a query to my Oracle Data Base, Before this I was using Cocoon(apache) to
generate the dynamic XML with the query's result, is there a way to makethe same
thing with Weblogic ? anybody know how to do it ? do yu have a simpleexample
? here is a sample code that I use with cocoon.
<?xml version="1.0" ?>
<?cocoon-process type="xsp"?>
<xsp:page language="java" xmlns:sql="http://www.apache.org/1999/SQL"
xmlns:xsp="http://www.apache.org/1999/XSP/Core"
xmlns:request="http://www.apache.org/1999/XSP/Request">
<page title="SQL Search Results">
<sql:execute-query>
<sql:driver>oracle.jdbc.driver.OracleDriver</sql:driver>
<sql:dburl>jdbc:oracle:thin:@IP_Address:1521:cta</sql:dburl>
<sql:username>User</sql:username>
<sql:password>Password</sql:password>
<sql:doc-element>My_table</sql:doc-element>
<sql:row-element>record</sql:row-element>
<sql:query>select * from My_table</sql:query>
</sql:execute-query>
</page>
</xsp:page>
Thanks a lot for your help !
Gustavo Mejia
INFOTEC -
How to parse a dynamic xml in java
I have to parse a dynamic xml document : the different TheItemNames and the racine are changing . So , can you help me with a code because to parse a xml document you must presents the racine and TheItemNames
My previous post gives me an idea on how to use ArrayList of ArrayList as dynamic 2 dimensional array.
More info bellow
ArrayList rows = new ArrayList()
ArrayList columns_of_row0 = new ArrayList()
rows.insertAt(0) = columns_of_row0;
ArrayList columns_of_row1 = new ArrayList()
rows.insertAt(1) = columns_of_row1;and so on..
You can't use the code exactly or similar way, it would depend on how this array grows in your application.
But this and my previous post should give an idea on how to insert and retrieve elements from ArrayList when
treated as 2 dimensional array.
Hope this helps. -
Runtime Error For Converting Static pdf to Dynamic Xml Form pdf
Hi All,
I am converting my static pdf to dynamic xml form pdf using Adoble Livecycle Designer ES 8.2 it is giving runtime error dialog.
My static pdf size is 12MB and it contains 46 pages(mostly all pages will have images). Do we have any limitations for converting static pdf to dynamic xml form pdf ?
Error message image file is attatched to this thread.
Can any body please help me on this.
Advance Thanks
Prasad SagalaHi Paul,
With out dividing into smaller chunks, Do we have any other alternative?
Because in my other pdf reports having more than 50 pages (in between 100-600). If i want do divide smaller chunks it will be the long process.
Thanks
Prasad Sagala
Maybe you are looking for
-
How do I use a NAS file system attached to my router to store iTunes purchases?
We have four Windows devices networked in our house. They all run iTunes with the same Apple ID so when any one of them has iTunes running, we can see that computer on our Apple TV. Two run Windows XP, one runs Vista Business, and the newest runs W
-
Any iTunes above 10 will screw up .mov accessibility in FCP, so I do not want to download iTunes 11 just to get this iPod Touch updated to 5 or 6. Can I download the update some other way?
-
I have 2 questions about sound in Flash: 1. Does frame rate affect sound quality at all? Or they're two completely separate things? 2. If size is not an issue, among aiff, wav, and mp3, which is the best sound format for Flash in terms of sound quali
-
Where are crop marks for printing Acr. Pro 9
trying to print a document from InD4 after PDF'ing it and have it up on Acrobat. I don't do this often but am at a loss-where do I find the check off boxes so I can send the file to the printer with the crop marks and the color block. Thanks for any
-
Creating process chains in production environment..
Hi, We are planning to create process chains in our project , can we directly create process chains in the production environment? the data and the set up is very very small here so the number of chains and processess are very less , is it ok if we