Xml script
Hi all
would someone beable to help with xml external file script
for creating an mp3 player. I found some tutorials on how to do so
much but am nowlost on how to do the remaining buttons. So far I've
created a play/pause toggle button and a next button. What I'm
tring to do now is finish off the conrols by adding the back, stop,
play and loop buttons to my controller.
within the xml document, mp3player.as is all the script,
exlplaining how it loads the tracks etc,.
would anyone beable to help/show me the code for the xml
script as I'm not very good with xml?
heres the example page of what I'm trying to do, and there is
also a link so you can download the source files.
http://www.paragon360.com/example01/example01.html
any help would greatfully appreciated
cheers
noddy
There are two tutorials for an MP3 player at
www.gotoAndLearn.com that you
might find helpful.
"noddy man" <[email protected]> wrote in
message
news:enm050$aot$[email protected]..
> Hi all
>
> would someone beable to help with xml external file
script for creating an
> mp3
> player. I found some tutorials on how to do so much but
am nowlost on how
> to
> do the remaining buttons. So far I've created a
play/pause toggle button
> and a
> next button. What I'm tring to do now is finish off the
conrols by adding
> the
> back, stop, play and loop buttons to my controller.
>
> within the xml document, mp3player.as is all the script,
exlplaining how
> it
> loads the tracks etc,.
> would anyone beable to help/show me the code for the xml
script as I'm not
> very good with xml?
>
> heres the example page of what I'm trying to do, and
there is also a link
> so
> you can download the source files.
>
>
http://www.paragon360.com/example01/example01.html
>
> any help would greatfully appreciated
>
> cheers
> noddy
>
Similar Messages
-
Building & deploying cubes in OWB (can we do these by using XML scripts)
Hi Guys,
Building & deploying cubes in OWB (can we do these by using XML scripts).
Is it possible in OWB?
Please help me ASAP..Hi, i managed to work out a solution with my web host.
The problem was that they are using Apache to process all incoming http requests then only forwarding specific requests to tomcat.
So by entering the port number after the domain ie www.mydomain.com:8080/ the http request went directly to tomcat and was processed correctly.
Furthermore my web host configured apache so all requests go straight to tomcat so now the port number isn't even required and all is well with the world again!
except... navigating to different pages in my site does not update the url correctly.
For example the site loads index.jsp when entering www.mydomain.com/ but when navigating to another page (i.e. photo.jsp) the photo.jsp page loads ok but the url is updated to www.mydomain.com/faces/index.jsp which is not correct. When refreshing the photo.jsp page it reloads the index.jsp page because of the incorrect url.
any ideas... -
How to add macaddress in NAC profiler with xml script
Hi,
how do we checkhow do we add the mac address in the XML script
the requirement is : Printers mac address and the ip address should match to get profiled under printer.
i have tried with the below script but it says invalid tag
kindly help me in this
thanks in advance. -
XML script to copy data from one repository to another
Hi all,
a customer wants an xml script that copy all data from the repository A to the repository B. I think that this is not possible to do this with an xml script, because the script tags (add-item, update-item, query-item, import-item, load-item, remove-item) seems don't give this feature. The same for RQL, that doesn't give you a command like "SELECT INTO".
But what i'm asking is: Is there a way to run the copy using the repository script tags?
Thanks.
Edited by: user10980894 on 11-lug-2011 3.33Please elaborate , If what you need is to copy data from between two dissimliar repositories then it is not possible , but if a and b are having the same structure then you might be able to do that using the following and tweaking the generated xml
Both the repositories should have the same structure and name , please follow the below commands and you will be able to export the data in below format , see if this is all you want
export using
bin/startSQLReository -m module -export all outputfile.xml -repository repositoryA
Change the reference to repositoryA in the file
import using
bin/startSQLRepository - m module - import outputfile.xml -repository repositoryB
<add-item item-descriptor="priceList" id="plist4350003">
<set-property name="description"><![CDATA[Group of Thirteen States which is generally called as L13 in AT&T]]></set-property>
<set-property name="displayName"><![CDATA[L13]]></set-property>
<!-- export is false <set-property name="version"><![CDATA[7]]></set-property> -->
<set-property name="basePriceList"><![CDATA[listPrices]]></set-property>
<set-property name="creationDate"><![CDATA[9/3/2010 07:38:49]]></set-property>
<set-property name="lastModifiedDate"><![CDATA[9/10/2010 17:02:09]]></set-property>
<set-property name="itemAcl"><![CDATA[Admin$role$administrators-group:list,write,write_owner,write_acl,read_owner,destroy,read_acl,read;Admin$role$everyone-group:list,read]]></set-property>
</add-item>
please refer to this section of ATG Repository guide for further info -
Catalog manger "search and replace " using xml script
Hi ,
we have renamed 6 rpd columns names in rpd & alias is not removed yet .In catalog manager i can search and replace using string .But it takes lot time as they are stored in different reports , which are existing . I am trying to use xml script for replacing them.I got sample script from help file for single column . can anyone help for doing that for multiple strings.I will provide with my inputs .
my inputs:
<?xml version="1.0" encoding="utf-8"?>
<actions>
<action command="textReplace" oldValue="column 1 " newValue="column one" ignoreCase="true"/>
<action command="textReplace" oldValue="column 2" newValue="column two" ignoreCase="true"/>
<action command="textReplace" oldValue="column 3" newValue="column three" ignoreCase="true"/>
</actions>
please correct me .Given xml content looks okay but just in case check this oldValue="column 1 ", there is additional space at the end.
I would suggest to extract Analysis report (.csv) using Catalog Manager and find out the list of reports based on those columns.
This would help you learn with list of reports based on report owners, and then go for the fixing those reports.
If you go by xml replace you never know the affected reports and you may not confirm until report owners come back to you with issues.
This might take little bit time but your changes based on proper doc.
Let me know updates, if helps mark
Edited by: Srini VEERAVALLI on Feb 19, 2013 3:21 PM -
Hello guys,
I have been working in support for a while now so I've come accross a number of XML scripts. What I've found was that modifying them was not extreemly hard because most of the work was already done, but trying to build it from scratch is very hard for me unless I just want to copy what some else has already done and just add a few modification to it and pretend its my work.
I would like a cituation where I'm given a scenario and I am able to single-handedly create a script to meet the task. Can anyone advise me on what to read, which forumes to visit etc please?
For instance, the command below is a mistry to me even though I can see what the intension is. I need to understand the reason behind every forward slash, backslash etc.
"/descendant::XMLDataResponse/child::XMLDataResult/child::PhoneNumber")
The above sytax was taken from the link below.
: https://supportforums.cisco.com/thread/2108527hello Guys,
I just have one more question. So basically I have been reading the link you showed me and I've really loved it. So I went back to one of the old scripts I've worked on the past and I thought I'd actually attempt to fully understand it. I saw an Xpath syntax in the uccx script that looked really odd to me. just want to share it you guys maybe you will be able to shed some light on it.
Firstly, here is the XLM doc Contents:
==============================
<?xml version="1.0" encoding="UTF-8"?><
Emergencys>
<Emergency1>falseEmergency1>
Emergencys>
==================================
The original xpath syntax that was used to grab the value of the Emergency element is as listed below.
==============================================================================
"/descendant::Emergencys/child::" + EmergencyTag
===============================================
I wrote an xpath syntax that I think could probably grab the value of the emergency element too: I have pasted it below
==========================================================================================
/descendant::Emergenys/child::*/text()
==========================================================
Guys, the thing I dont understand about the syntax below is Why was there any need to add ' + Emergency Tag' at the end of the Xpath syntax ?
"/descendant::Emergencys/child::" + EmergencyTag -
Insert data into oracle table from XML script not working
Hi,
I wrote simple PL/SQL program to extract values from a XML file and disply all the employee names. But the first employee name repeating. Please can you tell me how to fix it.
set serveroutput on size 2000;
declare
indoc VARCHAR2(2000);
indomdoc dbms_xmldom.domdocument;
innode dbms_xmldom.domnode;
myParser dbms_xmlparser.Parser;
l_nl dbms_xmldom.DOMNodeList;
lv_value varchar2(30);
l_n dbms_xmldom.DOMNode;
begin
indoc := '<emp> <name> Scott </name>
<name> Tiger </name>
</emp>';
myParser := dbms_xmlparser.newParser;
dbms_xmlparser.parseBuffer(myParser, indoc);
indomdoc := dbms_xmlparser.getDocument(myParser);
innode := dbms_xmldom.makeNode(indomdoc);
l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(indomdoc),'/emp/name');
dbms_output.put_line('Record count '||dbms_xmldom.getLength(l_nl));
FOR cur_emp IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
l_n := dbms_xmldom.item(l_nl, cur_emp);
lv_value := dbms_xslprocessor.valueOf(l_n,'//name/text()');
dbms_output.put_line('Emp Name : '||lv_value);
END LOOP;
end;
/Based on an earlier example of mine from {message:id=2826611}
This works in 10.2.x.x for sure. I can't recall (didn't look up) whether in 10.1 it allowed for going straight from a CLOB to a DOMDocument via newDomDocument.
declare
indoc VARCHAR2(2000);
indomdoc dbms_xmldom.domdocument;
l_nl dbms_xmldom.DOMNodeList;
lv_value VARCHAR2(30);
l_n dbms_xmldom.DOMNode;
l_xmltype XMLTYPE;
l_index PLS_INTEGER;
begin
indoc := '<emp> <name> Scott </name>
<name> Tiger </name>
</emp>';
indomdoc := dbms_xmldom.newDomDocument(indoc);
l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(indomdoc),'/emp/name');
dbms_output.put_line('Record count '||dbms_xmldom.getLength(l_nl));
-- Method 1
FOR cur_emp IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
l_n := dbms_xmldom.item(l_nl, cur_emp);
lv_value := dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(l_n));
dbms_output.put_line('Emp Name : '||lv_value);
END LOOP;
dbms_xmldom.freeDocument(indomdoc);
-- Method 2
dbms_output.new_line;
l_xmltype := XMLTYPE(indoc);
l_index := 1;
WHILE l_xmltype.Existsnode('/emp/name[' || To_Char(l_index) || ']') > 0
LOOP
lv_value := l_xmltype.extract('/emp/name[' || To_Char(l_index) || ']/text()').getStringVal();
dbms_output.put_line('Emp Name : '||lv_value);
l_index := l_index + 1;
END LOOP;
end; -
Hello,
I keep getting the "Bad HTTP result code: 404" error message when I submit my podcast link to iTunes. I am using Hostmonster for a FTP server and they claim they support byte range requests. Anyone have any suggestions.OK, after some detective work/guesswork I located your feed, which is at
http://singlemaltsoccer.com/iTunes_Podcasts/Podcasts/Single.Malt.Soccer.xml
That's the URL you should be submitting to iTunes: however at the moment it won't work because you have a blank line at the start, which is not allowed in XML. The very first thing in your feed must be
<?xml version="1.0" encoding="UTF-8"?>
You also have the URL of your media file wrong: it should be
http://singlemaltsoccer.com/music/20140814.Podcast.mp3
Basically you've been putting in the FTP (uploading) path - you need to remove the 'ftp.' and 'public_html/' from any URLs.
Your first category is 'Sports & Recreation' - you can't use an ampersand by itself as in XML it signifies the beginning of a code sequence which is never completed, and this will render the feed unreadable. You must replace it with the code
&
You should choose a sub-category or the Store may choose one for you - the available ones are Amateur, COllege & High School, Outdoor, and Professional. You have chosen 'Arts' as your second category but this won't show in the Store and searching on it won't bring up your podcast (nor will searching on the main category - only 'featured' podcasts show).
Your 'itunes:image' tag should show http://singlemaltsoccer.com/iTunes_Podcasts/Icon/Single.Malt.Soccer.Icon.png ; however the image will get your feed rejected as it is only 632 x 640 px - it must be 1400 x 1400 and when you produce a new version make sure that it is smaller than 500kB or again it will be rejected (you would probably be better off making it a JPG as these are inherently smaller).
Your 'link' tag should contain the URL of your website, not of the mp3 file. Your episode title is simply the date - it's up to you whether you think that's a good idea (the date shows in the Store and iTunes displays).
I checked your media file and the server does appear to accept byte range requests. -
Is there any way to create an XML template with a scope "port" that would allow you to configure switches with access and trunk ports . Currently I have to deploy once for the access port configs and then deploy again with one for trunk / uplink. I thought about adding my trunk ports to my base config (scope "device"), but it seems that the cli lines containing "interface" are removed or not processed unless I use the xml template with scope "port".
Thank you.Nope.
-
Hi can anyone help me with this? I got a problem here can
anyone help me to translate into actionscripting for me?
I want to open a file base on the values i assign if t = 1, i
wanna open 1.xml if i give t =2, i wanna open 2.xml and so on
untill value 10. How do I write into an actionscript? Thanks in
advanceIts ok. I manage to solve it. xmlData.load("t" +
".xml"). -
How to? regarding adding xml parent tag in generated xml script using C# scripting
Hi All,
I have a set of transformations, which will generate xml data by reading rows from database
here is my data flow https://social.msdn.microsoft.com/Forums/getfile/606619
<Customer>
<CustomerId>1</CustomerId>
<Name></Name>
<Title></Title>
<Phone>1 (11) 500 555-0162</Phone>
<Gender>F</Gender>
<MaritalStatus>S</MaritalStatus>
<YearlyIncome>70000</YearlyIncome>
<BirthDate>15-02-1968 12:00:00</BirthDate>
<EmailAddress>[email protected]</EmailAddress>
<CustomerKey>11003</CustomerKey>
</Customer>
<Customer>
<CustomerId>2</CustomerId>
<Name></Name>
<Title></Title>
<Phone>1 (11) 500 555-0131</Phone>
<Gender>F</Gender>
<MaritalStatus>S</MaritalStatus>
<YearlyIncome>80000</YearlyIncome>
<BirthDate>08-08-1968 12:00:00</BirthDate>
<EmailAddress>[email protected]</EmailAddress>
<CustomerKey>11004</CustomerKey>
</Customer>
my problem is I am not able to add <?xml version="1.0" encoding="UTF-8"?> (xml tag) to output folder, which should be just at the beginning of xml file.
I am a beginner in SSIS, any help/hints will be appreciated.
Regards,
MateenWhy not do it in t-sql?
http://visakhm.blogspot.in/2014/05/t-sql-tips-fun-with-for-xml-path.html
http://visakhm.blogspot.in/2013/12/generating-nested-xml-structures-with.html
If you want to do it in SSIS use this
http://bicortex.com/how-to-create-an-xml-file-using-ssis-and-ms-sql-server/
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Using XML file in Java script to create Google Map
Hello,
I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have had to explore the internet in order to discover various tutorials and examples that have led me on a positive path.
Right now I am working on a Google Mash-Up that will incorporate over 14,000 records, which will appear as separate markers that will have pop-up info bubbles with additional info inside (using html), once the marker is clicked.
Here is the XML script example that is used in the tutorial I am following:
<markers>
<marker lat="43.65654" lng="-79.90138" html="Some stuff to display in the<br>First Info Window"
label="Marker One" />
<marker lat="43.91892" lng="-78.89231" html="Some stuff to display in the<br>Second Info Window"
label="Marker Two" />
<marker lat="43.82589" lng="-79.10040" html="Some stuff to display in the<br>Third Info Window"
label="Marker Three" />
</markers>
...and this is how it looks when the file is retrieved by the java script and mapped: http://econym.googlepages.com/example_map3.htm
This is the java script that creates the Google Map. I have emboldened the section of the script that retrieves the data and parses it to create the markers:
<!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>Google Maps</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA6GoL8P5zqjQlG5A5uM1ETBSUPozAscB0cY3RG8xEGnZyeom4axRySak889rVpvHYRsV4f9OZZzbboA"
type="text/javascript"></script>
</head>
<body onunload="GUnload()">
<!-- you can use tables or divs for the overall layout -->
<table border=1>
<tr>
<td>
<div id="map" style="width: 800px; height: 1200px"></div>
</td>
<td width = 200 valign="top" style="text-decoration: underline; color: #4444ff;">
<div id="side_bar"></div>
</td>
</tr>
</table>
<noscript><b>JavaScript must be enabled in order for you to use Google Maps.</b>
However, it seems JavaScript is either disabled or not supported by your browser.
To view Google Maps, enable JavaScript by changing your browser options, and then
try again.
</noscript>
<script type="text/javascript">
//<![CDATA[
if (GBrowserIsCompatible()) {
// this variable will collect the html which will eventualkly be placed in the side_bar
var side_bar_html = "";
// arrays to hold copies of the markers used by the side_bar
// because the function closure trick doesnt work there
var gmarkers = [];
var i = 0;
// A function to create the marker and set up the event window
function createMarker(point,name,html) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
// save the info we need to use later for the side_bar
gmarkers[i] = marker;
// add a line to the side_bar html
side_bar_html += '<a href="javascript:myclick(' + i + ')">' + name + '</a><br>';
i++;
return marker;
// This function picks up the click and opens the corresponding info window
function myclick(i) {
GEvent.trigger(gmarkers, "click");
// create the map
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng( 37.251699,-119.604315), 7);
*// Read the data from testXML2blackpoolformat.xml*
var request = GXmlHttp.create();
request.open("GET", "testXML2blackpoolformat.xml", true);
*request.onreadystatechange = function() {*
*if (request.readyState == 4) {*
var xmlDoc = GXml.parse(request.responseText);
*// obtain the array of markers and loop through it*
var markers = xmlDoc.documentElement.getElementsByTagName("ConnectoryRecord");
*for (var i = 0; i < markers.length; i++) {*
*// obtain the attribues of each marker*
*var lat = parseFloat(markers[i].getAttribute("lat"));*
*var lng = parseFloat(markers[i].getAttribute("lng"));*
var point = new GLatLng(lat,lng);
*var html = markers[i].getAttribute("html");*
*var label = markers[i].getAttribute("label");*
*// create the marker*
var marker = createMarker(point,label,html);
map.addOverlay(marker);
// put the assembled side_bar_html contents into the side_bar div
document.getElementById("side_bar").innerHTML = side_bar_html;
request.send(null);
else {
alert("Sorry, the Google Maps API is not compatible with this browser");
// This Javascript is based on code provided by the
// Blackpool Community Church Javascript Team
// http://www.commchurch.freeserve.co.uk/
// http://econym.googlepages.com/index.htm
//]]>
</script>
</body>
</html>
Here is my delima--
This is the xml format that I need to use because it can accept the rest of my excel file and loop it through the 14,000+ records to create a functioning xml file. This is just a sample (2 records) of the larger file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<ConnectoryAug2008>
<ConnectoryRecord>
<lng>-117.03683</lng>
<lat>32.944505</lat>
<ConnectoryID>1</ConnectoryID>
<Name>$2.95 Guys</Name>
<StreetAddress>13750 Stowe Drive</StreetAddress>
<City>Poway</City>
<State>CA</State>
<Zip>92064</Zip>
<Marker>White</Marker>
<IndustryGroup>Technical Services</IndustryGroup>
<ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=1</ConnectoryProfileLink>
</ConnectoryRecord>
<ConnectoryRecord>
<lng>-117.272843</lng>
<lat>33.13337</lat>
<ConnectoryID>2</ConnectoryID>
<Name>(GLDS) Great Lakes Data Systems</Name>
<StreetAddress>5954 Priestly Drive</StreetAddress>
<City>Carlsbad</City>
<State>CA</State>
<Zip>92008</Zip>
<Marker>Orange</Marker>
<IndustryGroup>Technology</IndustryGroup>
<ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=2</ConnectoryProfileLink>
</ConnectoryRecord>
</ConnectoryAug2008>
This is the tutorial where I found the formatting techniques to successfully create the large xml file that will format/convert my excel file properly: http://www.mrexcel.com/tip064.shtml
These variables should appear as html in the info bubble:
<ConnectoryID>2</ConnectoryID>
<Name>(GLDS) Great Lakes Data Systems</Name>
<StreetAddress>5954 Priestly Drive</StreetAddress>
<City>Carlsbad</City>
<State>CA</State>
<Zip>92008</Zip>
<IndustryGroup>Technology</IndustryGroup>
<ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=2</ConnectoryProfileLink>
The "Marker" variable instructs Google Maps to label the marker with a particular color. I will be so grateful to the person(s) that helps me get through this wall that I have been hitting for a long time. It's very difficult without having the luxury of peers who know about these types of issues.
Thank you!!Here is the relationship: They both contain geographic coordinates that produce a point on a map. I will use the rest of the information in the second xml file (company name, address, link, etc.) to produce the information for the bubble that will pop up once the marker is clicked.
My problem is that I need to try to keep the second xml file in a relatively similar format, so the rest of my records will still be accepted. If I had a smaller amount of records I could place them directly into the javascript, but because there are so many records, I need to use an xml file that can be retrieved by the java script. I chose to use the second type of xml file because I can easily copy and past the 14,000+ records that are now in excel document.
After the xml issue is corrected I need to rework the javascript that is now emboldened so that it will read the new xml file correctly. I included the first xml file so that the readers will understand what type of xml format is currently being used to produce the markers in the tutorial map. -
Can we write query in xml file to get desired field?
I have XML script like below can I query this file and get returns like Name only for instance similar to 'select top 5 name from [HumanResources].[Department] order by DepartmentID'
Engineering
Tool Design
Sales
Marketing
Purchasing
<HumanResources.Department DepartmentID="1" Name="Engineering" GroupName="Research and Development" ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="2" Name="Tool Design" GroupName="Research and Development" ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="3" Name="Sales" GroupName="Sales and Marketing" ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="4" Name="Marketing" GroupName="Sales and Marketing" ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="5" Name="Purchasing" GroupName="Inventory Management" ModifiedDate="2002-06-01T00:00:00" />DECLARE @xml xml='<HumanResources.Department DepartmentID="1" Name="Engineering" GroupName="Research and Development"
ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="2" Name="Tool Design"
GroupName="Research and Development" ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department
DepartmentID="3" Name="Sales" GroupName="Sales and Marketing" ModifiedDate="2002-06-01T00:00:00" />
<HumanResources.Department DepartmentID="4" Name="Marketing" GroupName="Sales and Marketing"
ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="5" Name="Purchasing"
GroupName="Inventory Management" ModifiedDate="2002-06-01T00:00:00" />'
SELECT T.Name.value('@Name', 'VARCHAR(50)') AS Name
FROM @xml.nodes('HumanResources.Department')
AS T(Name);
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Converting from PDF directly to Java Objects/XML (and PDF format questions)
Hi,
I posted this originally in the Acrobat Windows forums but was told I might have more luck here, so here goes:
I am desperately trying to find a tool (preferably open source but commercial is fine also) that will sit on top of a PDF and allow me to query it's text for content and formatting (I don't care about images). I have found some tools that get me part of the way there, but nothing that seems to provide an end-to-end solution but is quite lightweight. My main question is WHY are there so many tools that go from PDF to RTF, and many tools that go from RTF to XML, but NONE that I can find that go PDF to XML.
To clarify, by formatting I simply mean whether a line/block of text is bold/italic, and its font size. I am not concerned with exact position on the page. The background is that I will be searching PDFs and assigning importance to whether text is a heading/bodytext etc. We already have a search tool in place so implementing a pure PDF search engine is not an option. I need a lightweight tool that simply allows me to either make calls directly to the PDF OR converts to XML which I can parse.
Some tools I have tried:
1) PDFBox (Java Library) - Allows the extraction of text content easily, but doesn't seem to have good support for formatting.
2) JPedal (Java Library) - Allows extraction of text content easily, and supports formatting IF XML structured data is in the PDF (not the case for my data).
3) Nitro PDF (Tool) + RTF to XML (script) - This works quite nicely and shows that PDF to XML is possible, but why do I have to use 2 tools? Also, these are not libraries I can integrate into my app.
4) iText (Java Library) - Seems great at creating PDFs but poor at extracting content.
I don't really expect someone to give me a perfect solution (although that would be nice!).
Instead, what I'd like to know is WHY tools support PDF to RTF/Word/whatever retaining formatting, and other tools support RTF to XML with the formatting information retained. What is it about PDF and RTF/Word that makes it feasible to convert that way, but not to XML. Also, as I found in 3) above, it is perfectly feasible to end up as XML from PDF, so why do no tools support this reliably!
Many thanks for any advice from PDF gurus.XML doesn't mean anything - it's just a generic concept for structuring
information. You need a specific GRAMMAR of XML to mean anything. So what
grammar would you use? Something standard? Make up your own?
However, there are a number of commercial and open source products that can
convert PDF to various XML grammars - SVG, ABW, and various custom grammars.
But the other thing you need to understand is that most PDF files do not
have any structure associated with them (as you saw when using JPEDAL). As
such, any concepts of paragraphs/sections/tables/etc. Are WILD GUESSES by
the software in question. -
How to Trigger / execute a rule directly from an XML form?
I am in the process of customizing User Forms, and I would like to implement a trigger (if that's the right name for it) in the XML script, which will execute a Rule (or some code) that will result in an email being sent.
For example, the following simple script (selection from a dropdown menu) :
*<Field name='orderlunch'>*
*<Display class='Select' action='true'>*
*<Property name='title' value='Order Lunch'/>*
*<Property name='allowedValues'>*
*<List>*
*<String>- Please Select -</String>*
*<String>Yes</String>*
*<String>No</String>*
*</List>*
*</Property>*
*</Display>*
*</Field>*
A small XML code, to indicate an order for lunch.
naturally, if the user selects "No", then nothing happens.
But, if he selects "Yes", then I would like to automatically send an Email Notification to the appropriate person, notifying him that lunch has been ordered. (of course, I would need to indicate such things as WHO ordered the lunch, WHEN, etc, etc. But, I will get into that later)
Does anyone know how this can be done?
(a) Could I insert the trigger/condition/whatever right into the main XML script itself?
Or
(b) should I write a code which will call on/invoke a separate Rule, which will subsequently send the email?
If (b) is the right answer, then how would I go about creating such a Rule, and linking it to the main XML script?In your Wf or subprocess call the activity notify .testemaillist contains the list of users for whom the mail need to be sent .
<Activity id='1' name='Notify'>
<Action id='0' process='Notify'>
<Iterate for='email' in='testEmaillist'/>
<Argument name='template' value='emailtemplatename'/>
<Argument name='to' value='$(email)'/>
</Action>
</Activity>
I hope this may help you
Maybe you are looking for
-
IPhone 4S won't restore?!?!?!?
I am wanting to sell my 4S so I'll have money when the iPhone 5 comes out so, I wanted to restore it so I could sell it through instant sale on ebay. I plugged it up, and starting restoring it. When I first plugged it up, I noticed that it kept losin
-
Both are running the latest Messages 8.0. New messages are coming in fine on both computers but I would like to have my previous conversations moved over to my new computer if possible.
-
Add Spry Widgets to Dreamweaver Insert Bar
Hi. I'm trying to work out how to add Spry widgets to Dreamweaver's Insert bar. I downloaded Spry for Ajax 1.6 and copied the the contents of the SpryTooltip Folder. I did a search in Adobe Dreamweaver's program folder for everything Spry. I pasted S
-
Okay. I've imported my MXF audio & video files... but they won't sync. It's like I can sync up "parts" of clips but then they fall out of sync again... strange. The footage is DVC Pro50 HD @ 24 fps. Any quick syncing tips?
-
Hi all can anybody send me the fields and tables name for following fields material no.,plan quantity,issue quantity,assembly production quantity,tested quantity. Thanks Anirudh Saini