How can we forward XML document from Routing Engine to Mapviwer!!!
Does anyone try to forward XML document from routing engine to Mapviwer. Like spatial coordinate system from Routing engine. Could you help me how to accomplish this problem. Thank much much....
Just open an HTTP connection to MapViewer's server url (ususally http://host:port/mapviewer/omserver) and send an XML map request to it using POST. You can do that from any language that supports such a connection.
Inside the xml map request you can attach the routing result (a series of coordinates i imagine) as dynamic geo-features. You can also specify any base map/layer information in the xml map req provided you have defined such map/themes. DTD of mapviewer's map req is in the Users Guide, which is on OTN site mapviewer http://otn.oracle.com/products/mapviewer.
Similar Messages
-
How can I access xml document from javascript whithin a JSP page
how can I access xml document from javascript whithin a JSP page?
I have a JSP that receives an XML document from a JavaBean, so I can access it within the entire JSP, but I need to access it from the javascript inside the JSP... and I have no idea how i can do this.
Thanks in advance!The solution would only work on MS IE browsers, as other browsers do not support an XML DOM.
It can be done, but you would be stuck with using the Microsoft broswer. If that is acceptable, I have some example code, and a book recommendation. -
How to create an XML document from a String.
Can anyone help,
In the Microsoft XML Document DOM there is a load function load(string) which will create an XML document, but now we are switching to Java and I do not know how to create and XML document from a string, this string �xml document� is passed to my program from a webservice and I need to read several xml elements form it in a web server.
This string is a well formatted XML document:
<?xml version="1.0" encoding="UTF-8"?>
<Countries NumberOfRecords="1" LanguageID="en-us">
<Country>
<CountryCode>AU</CountryCode>
<CountryName>AUSTRALIA</CountryName>
</Country>
</Countries>Thanks PC!
I made it work using:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
factory.setIgnoringComments(true); // We want to ignore comments
// Now use the factory to create a DOM parser
DocumentBuilder parser = factory.newDocumentBuilder();
//TransformThisStringBuffer is a string buffer wich contain the 'XML document (String)'
InputStream in = new ByteArrayInputStream(TransformThisStringBuffer.toString().getBytes());
// Parse the InputStream and build the document
Document document = parser.parse(in);
But which one is faster InputSource or InputStream, were would you put the "new InputSource(new StringReader(yourString))" in the above code? -
How can I print a document from "workspace?"
How can I print a document from "workspace?"
1. Buy a AirPrint enabled printer; see list below
http://support.apple.com/kb/ht4356
2. Run the CD provided and setup as network printer; this will setup your printer to the same network as your iPad
http://i1224.photobucket.com/albums/ee374/Diavonex/1a30ee42.jpg
3. Start printing from your iPad without wire
http://i1224.photobucket.com/albums/ee374/Diavonex/93ec77e5.jpg -
How can I change a document from booklet to single pages
How can I change a document from booklet to single pages?
Very cumbersome.
How many pages?
Make a copy first.
In Acrobat use the Crop tool to crop half the width. (Pages > Crop Pages.)
For 11x17 to 8.5 x11 crop all even pages 8.5 left, all odd pages 8.5 right.
Do you have InDesign?
Create a new document correct to finished page size.
(Use Import Multi Page script to) Place all pages offset by the proper page amount.
Export new pdf. -
Hi, I would like to know how can I recover a document from pages that I didn't save anytime and instead of saving the doc I clicked the delete button. Is there any way to recover it?
Regardless of application, the first step that I take is to save and name the current document — even if it has no content yet. With Pages, this good habit enables autosave. As you add content, your document revision history is restorable via the File Revert To menu. The delete key has the same document foreboding as only teaching a pet raven to speak "Nevermore."
-
How to Create an XML document from XSQL servlet which follows a particular DTD struct
how to Create an XML document from XSQL servlet which follows a particular DTD structure.Could anyone send me a sample code for this.
You'll need to associate an XSLT transformation with your XSQL page that transforms the canonical result into your DTD-valid format.
For example, given an XSQL page like:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="rss.xsl" ?>
<xsql:query max-rows="3" connection="demo" xmlns:xsql="urn:oracle-xsql">
select title,id,description,url,to_char(timestamp,'Mon DD') timestamp
from site_entry
order by id desc
</xsql:query>and an "rss.xsl" stylesheet that looks like this:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" doctype-system="rss-0.91.dtd"/>
<xsl:template match="/">
<xsl:for-each select="ROWSET/ROW">
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
<xsl:for-each select="ITEM">
<item>
<title><xsl:value-of select="TITLE"/></title>
<link><xsl:value-of select="URL"/></link>
<description><xsl:value-of select="DESCRIPTION"/></description>
</item>
</xsl:for-each>
</channel>
</rss>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>You produce DTD-valid output against the rss-0.91.dtd DTD that looks like:
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE rss SYSTEM "rss-0.91.dtd">
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
</channel>
</rss>
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
</channel>
</rss>
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
</channel>
</rss> -
How can I save my document from pages to a flash drive?
How can I save my document from pages to a flash drive?
Locate the file on your Mac, plug in the USB stick (the mac should prompt you to open it, or do this automatically), click and drag the file from the computer (wherever it's saved to) to the USB folder. That's just putting an already saved file there.
To save it TO your USB stick, find it in the Save To diolog on the sidebar. Click it, then save it there. -
How can i restore my documents from icloud on my iphone if i have already gone through the setup process??
Back to the beginning...
What do you mean by "documents"? Word or Pages files, spreadsheet files?
Also, on your device, in Settings>iCloud, you have to have an on/off setting for Docments&Data. If not what kinds of entries do you have on that screen? -
How can I send PDF document from adobe
How can I send PDF document from adobe
If you mean, "How can I send a PDF document from Adobe Reader?" then answer is: Click on the Share button (arrow out of box icon), and choose E-mail document.
-
How can i read a document from a scanner machine in java
I am building a application and i want to read the document from the scanner
how can i read a document from a scanner machine in java
So pls help me on this issueProbably not via a network.
http://www.javaworld.com/javaworld/jw-07-2002/jw-0726-twain.html -
How can I get xml data from KM?
Hi guys,
how can i get a xml data from KM?
I saved an xml document in KM, and I want to read its content. How can I get this document?
Using
DocResource = (IResource) resFactory.getResource(RID.getRID("Document/ Path"),resContext)?
I want to know which kinds of API of KM are responsible for this.
Thanks in advance
Regards,
LiyingHi Liying
use this code.
try {
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
IUser sapUser = wdClientUser.getSAPUser();
com.sapportals.portal.security.usermanagement.IUser ep5User =
WPUMFactory.getUserFactory().getEP5User(sapUser);
IResourceContext resourseContext = new ResourceContext(ep5User);
IResourceFactory resourseFactory = ResourceFactory.getInstance();
RID pathRID =
RID.getRID(
"/documents/"(Path to folder where ur file is"");
ICollection collection =
(ICollection) resourseFactory.getResource(
pathRID,
resourseContext);
IResourceList resourceList = collection.getChildren();
IResourceListIterator resourceListIterator =
resourceList.listIterator();
while (resourceListIterator.hasNext()) {
com.sapportals.wcm.repository.IResource resource =
resourceListIterator.next();
try {
/*File from KM Reading*/
InputStream in = resource.getUnfilteredContent().getInputStream();
ByteArrayOutputStream out = new ByteArrayOutputStream();
byte[] buffer = new byte[4096];
int bytesread = 0;
while ((bytesread = in.read(buffer)) != -1) {
out.write(buffer, 0, bytesread);
String dataToBeConvertedToXML = out.toString();
catch(Exception e){}
catch(Exception e){}
Award points if found usefull.
I suppose you have used KM sharing reference in ur application
Regards
BP -
How can i extract just documents from time machine backup?
How can I extract just my documents from a time machine backup? I had to re-install Lion after the update screwed things up, the Genius Bar guy told me to re-install each App, and then transfer just my data (documents) back but didn't tell me how. I only see how you can restore the entire snapshot of what was on my MacBook that day, I don't see how to select specifics.
Hi,
Install a fresh Lion OS on your Mac. After this is done, then connect your time capsule. Click on the time machine icon in the dock bar so you will enter in time machine. Select the document folder and any document or all you need. The same thing you can do with iPhoto, Emails, etc.
Let me know
Claudio -
How to generate an XML Document from XQuery
The following query returns me the required XML output. However, I need to generate an XML Document out of it. How do I go about generating an XML Doc?.
SELECT XMLQuery('<Data>
{for $tert in ora:view("DATA"),
$tert_audit in ora:view("DATA_AUDIT")
let $tert_cmd_id := $tert/ROW/ID/text(),
$tert_spouse_name := $tert/ROW/SPOUSE_NAME/text(),
$tert_directions := $tert/ROW/DIRECTIONS/text(),
$tert_soil_zone := $tert/ROW/SOIL_ZONE/text(),
$tert_audit_cmd_id := $tert_audit/ROW/ID/text(),
$tert_audit_trans_date := $tert_audit/ROW/TRANSACTION_DATE/text()
where $tert_cmd_id = $tert_audit_cmd_id and
$tert_audit_trans_date >= xs:date(V_Last_Successful_Date)
order by $tert_cmd_id
return
<op>
<op_type>I</op_type>
<ent_id>{$tert_cmd_id}</ent_id>
<source>S</source>
<fg>
<val_flds>
<fld>
<id>spouse_name</id>
<val>{$tert_spouse_name}</val>
</fld>
<fld>
<id>directions</id>
<val>{$tert_directions}</val>
</fld>
<fld>
<id>soil_zone</id>
<val>{$tert_soil_zone}</val>
</fld>
</val_flds>
</fg>
</op>}</Data>' RETURNING CONTENT)
INTO V_Other_Insert
FROM dual;Hi Geoff,
I would like to generate an XML file which contains data as shown below:
<Insert>
<result>
<type>A</type>
<id>1</id>
<date>11/11/2006</date>
<source>Web</source>
</result>
</Insert>
I'm using the below given query for this purpose:
SELECT XMLQuery('<Insert>
{for $c in ora:view("TableA")
let $id := $c/ROW/ID/text(),
$code := $c/ROW/CODE/text(),
$type := $c/ROW/TYPE/text(),
$date := $c/ROW/DATE/text()
return
<result>
<type>{$type }</type>
<id>{$id}</id>
<date>{$date}</date>
<source>S</source>
</result> }</Insert>' RETURNING CONTENT)
INTO V_Insert
FROM dual;
V_Insert stores the required result.
How do I save this result to a XML Document?
Please help. -
How can i get xml data from html
Hi
i need to submit data from an html form to server via xml.
( ie data shold be in xml format instead of POST/GET methods )
how can i can i make this happen ?
Renjith.read the excellent suggestion from mochamaniac (reply 2 of 5): http://forum.java.sun.com/thread.jsp?forum=34&thread=303120
ps. next time run a search on the forum prior from posting ;-)
Maybe you are looking for
-
End of my Tether with Broadband fault at the excha...
Evening All, I've reached the end of the line it seems with BT technical support and Im now heading for a deadlock situation. Heres a bit of background from the past 7 weeks or so to try and outline the problem I've got, whether it inspires any sugge
-
Flash based photo galleries won't play
Photos on my website have stopped working, The website was built using NetObjects Fusion XII on Windows 7 (64 bit) and the photo galleries use shockwaveflash. I have checked the addons and plugins and everything is up to date. I have re-installed fla
-
Page wont fit screen and bar at bottom of page is central
'''bold text'''some pages wont fit on screen and bar at bottom of page is centred
-
I forgot my password to enable my phone. What do I do?
-
Error Notification "Close Safari Notifications"
I am getting a notification from the Cloud Installer to close Safari Notifications before it can proceed with the installation of Adobe XI Pro. Went to Safari --> Preferences and Removed All notofications there. Still received the message. So, as