Editing XML
I am wanting to edit an XML file that holds information about
a clients portfolio. Loading the XML into FLEX is easy w/ the HTTP
service. I am unsure of how to edit the XML within FLEX and then
send it to PHP that rewrites or appends to the XML document. I am
new to FLEX...
You don't (can't?, shouldn't?) use SAX to edit or
create XML documents. You need to use another API. I
suggest JDOM.Well, could you gimme an example of editing with JDOM.
Thanks in advance.
Similar Messages
-
How can I edit XML results ?
Hi,
In the documentation I read about how to get the results of a query (in .xsql) as a XML-page using the XSQL Servlet. With forms I can insert data into the Database, but what about retrieving data from it and immediately edit and update it (combination of the two) ?
What is the easiest way to achieve that ? I just want to update my data using XML as a data interchange format...
thanks,
ErikOne of the difficulties would be locking
your record.
Without locking, it's just a matter of
writing your XSL to enter data as a default
value into text fields in a form.
You could also use Transviewer Beans to
create a Swing app to edit XML files.
null -
how to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 device using ftp through Ethernet
Hello
For using FTP function in LabVIEW, I recommend you to check this document: FTP Basics
Also, take a look at FTP Browser.vi, which is available at the Example Finder.
To edit a XML file, try to use VIs in XML palette. Maybe Write to XML.vi helps you.
Post your current VI if possible.
Regards
Mondoni -
hello everybody,
i'm trying to write a java application for editing xml documents.
I know It is possible to use xsl stylesheets to transform xml documents but it is possible to display the result of the transformation process in java?
I mean,
I make the transformation XML --->XSL ---->but i don't want to view the output in a browser!! I want to view that in my java application !!
Can i display this output in swing objects?? Can i modify this output??
Thanks to all.I make the transformation XML --->XSL ---->but i don'tYou mean XML+XSLT=>XML
want to view the output in a browser!! I want to view
that in my java application !!
Can i display this output in swing objects?? Can i
modify this output??Here is an example for saxon:
// I didn't compile or run this code, please refer to API documentation for more detail instructions.
// Transformer factory.
TransformerFactory transformerFactory = TransformerFactory.newInstance();
// XML source file
File source_file = new File("xml_file.xml");
// output file
File outputFile = new File( "output.out");
// Transformation source
Source source = new StreamSource(source_file);
// Transformation result
out = new java.io.FileOutputStream(outputFile);
StreamResult result = new StreamResult(out);
result.setSystemId(outputFile.toURI().toString());
// Must be synchronized by factory, since factory isn't thread safe
synchronized (transformerFactory) {
// obtain a transformer
transformer = transformerFactory.newTransformer(new StreamSource(new File("xslt_template.xsl")));
// perform transformation
transformer.transform(source, result);
As you can see, you easely can redirect result to your Swing editor.
If you don't want to bother about streams and so on, you can use this example to write the result into the file, and open the file in your editor. -
Can you view and edit XML documents in dreamweaver?
Yes;
"paul_carron" <[email protected]> wrote in
message
news:ev00cn$ila$[email protected]..
> Can you view and edit XML documents in dreamweaver? -
hi
how to read and edit xml file using jdom, i tried using
javax.xml.transform.*; // JAXP
javax.xml.transform.dom.DOMSource; //
i can read xml file . but iam not able to edit the xml file.
how to achive this1. Select nodes to be modified with the JDom XPath class selectSingleNode and selectNodes methods.
SAXBuilder saxBuilder=new SAXBuilder("org.apache.xerces.parsers.SAXParser");
org.jdom.Document jdomDocument=saxBuilder.build(new File("c:/input.xml"));
org.jdom.Element node= (org.jdom.Element)(XPath.selectSingleNode(jdomDocument,"/root/node"));
2. Modify the node values with the Element class setter methods.
3. Output document with the XMLOutputer class. -
Any idea or url around for an example how to edit XML files
with ASP.VB ?
thanks fpr any reply
SebastianTo modify an XML document obtain a DOM stucture of the XML file, select nodes with XPath expression, and modify nodes.
http://otn.oracle.com/pub/notes/technote_domparser.html -
I want to edit xml file on run time dynamically using AS3
Plzzzzzzzz if it possible send the tutorials links or sample script.Flash player 10 has support for accessing local system file. This can be done using the FileReference class. You can browse a loca file, rad it and then save it back. But at the time of saving, the user is prompted to choose a location for saving the file.
Else you can use some server side technology with your app to read and write files. -
Can you edit xml files in adobe contribute
can you edit xml files in adobe contribute
No, you can't even open them in recent versions of PSE.
-
Help required to edit xml document
I am new to java and xml compatibility.I just had familiarised SAX parser.
I now want to familiarse the technology to edit xml document from a java program(more precisely write to an xml file).I came to know about many methods - JAXP DOM method,JAXB api method - and is totally confused.
Can any body give me guidance about these api's and suggest a method that
i should follow?
i repeat that my application will have to frequently edit xml files
Thank youHi,
it's very easy to edit and create XML. See examples in docs: http://livedocs.adobe.com/flex/3/langref/XML.html#includeExamplesSummary
There are many examples how to get attributes and other data.
You also can set attributes the same way.
If you have concrete questions, ask. -
Hey All,
I am having a lot of trouble editing XML files through the NAL. I was
hoping to be able to do it easily using the text editor built into the
NAL, but have had no success. Changing the file extension to txt doesn't
help either. Pretty much everyhtng leads to crashing the NAL or buffer
overruns. Any help would be greatly appreciated.
Thanks,
MattOn Wed, 07 Nov 2007 20:40:26 GMT, Matt wrote:
> I am having a lot of trouble editing XML files through the NAL. I was
> hoping to be able to do it easily using the text editor built into the
> NAL, but have had no success. Changing the file extension to txt doesn't
> help either. Pretty much everyhtng leads to crashing the NAL or buffer
> overruns. Any help would be greatly appreciated.
what do you mean with editing xml through NAL?
do you mean an application objects which changes stuff in a text file?
if yes, how big is the text file, are there any special characters, doesn
the file contain the stuff you want to change more than once?
Marcus Breiden
If you are asked to email me information please remove the - in my e-mail
address.
The content of this mail is my private and personal opinion.
http://www.didas.de -
How get and edit xml code of BI Publisher Report
Hi to all,
I need to do some costumization to one BI Publisher report. Investigating I found a solution to do my costumization. However this requieres edit the xml code. Can you please let me know how can I get and edit this code?
Thanks in advance
regards
Danielobiee / ebs .... ?
Investigating I found a solution to do my costumization. However this requieres edit the xml code.
no need edit seeded code (it's for SR)
your steps:
- get seeded code
- edit
- create custom report
Can you please let me know how can I get and edit this code?
for ebs you can look xml publisher responsibility, find by code -
Hello All,
Apologies in advance if this is a topic that has been covered
in the past. I searched through the previous posts, but didn't see
what I was looking for.
I am pretty new to SPRY, but have been able to put together a
few different apps that I think are interesting. These are mostly
based off of the demos I have seen on here such as the products
& photo gallery demos. After completing these though, the first
thing that pops in to my mind is how to build a backend edit tool
that would allow a potential client to edit the underlaying XML
that drives these apps without having to have me perform updates
for them. While looking around online I have seen several possible
solutions, but they all seem to have one problem or another.
What I am wondering is if there is an easy way to set up a
form that will edit/add/delete different entries in the XML files.
I would prefer to use PHP if at all possible. Of all the solutions
I have seen thus far, it seems that they all require me to use
either ASP, .NET, MYSQL or some other database system to extract
data from and create the XML dynamically. This is all well and
good, but I seem to have clients that have lots of different
hosting environments, so all of the above mentioned options seem to
be a bit to specialized for my needs. I'm really thinking that a
PHP solution that edits the XML file directly would be able to
cover more ground.
Is this even possible? Any direction that you could point me
in would be greatly appreciated!
Thanks!!!Hello,
As Kin said in the above post, if you are using HTML data
sets InContexEditing would be great service to use.
But what if you don't.. I doesn't mean it cannot be done with
XML and databases. While i was Adobe MAX 2008 milano I spend my
spare time building an example that allows users easy CRUD with
Spry. You can also purchase a system but why do so if you already
have all tools you need :)
http://www.spry-it.com/examples/crud/
Its very early stage of this example but I got all basic
actions covered.
Inline edit that posts the changed data to a server file. And
places the returned server value inside your data set and updates
the data set. (updating the data set is not necessary but i just
added it to show that the data is actually updated inside the data
set to)
You can also delete rows and duplicate rows. I did not tie a
server side action to those yet. But it would be easy to do as I
did with inline Editing function. I fully commented the
SpryFullCRUD.js so it might help you out..
If you don't understand it feel free to ask questions, and I
hope it helps you out a bit. I will be writing a large article
about this and hope this example give you some inspiration. -
Problem in editing xml document
Hi,
Can anybody help me out of this problem basically i want to develop sample prog that will take care of editng the existing xml document eg. i want to edit resource file for the application like if user want to change some property through the user interface and i want to reflect that input to the xml files.
Help me as soon as possible ............. its very urgent .......................
Regards
SanketOutput document with a transformer.
TransformerFactory tFactory =TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer();
DOMSource source = new DOMSource(document);
StreamResult result = new StreamResult(new File("c:/output/output.xml"));
transformer.transform(source, result); -
Editing XML in ePub files (also posted in ID forum)
Hi all
I posted this in the InDesign forum a few days ago but got no response, so I'm trying here. My apologies for the double-up.
I'm about to start preparing ePUB files (from InDesign CS4) for a particular distributor whose instructions state:
"Text encoding should all be in UTF-8 (this can be checked in the OPF, the first line should be “<?xml version="1.0" encoding="UTF-8" ?>” ".
When I check my initial test files using PDFXML Inspector (with pretty printing turned off — thanks Gabriel Powell) the first line states only “<?xml version="1.0"?>”.
I ran a test by simply adding the "encoding="UTF-8"" bit to that line and everything seems to work fine in Calibre and Digital Editions (as it did with the unedited version — there seems to be no difference).
BUT, is this the correct way to do things or am I inadvertently setting myself up for disaster?
Does InDesign automatically export with text encoded as UTF-8 — or some other format?
Are there other settings in InDesign which alter the way text is encoded and the XML is generated?
AND — my other question...
This distributor is also asking for additional metadata entries.
Can I integrate them anywhere within the metadata or are there particular ordering protocols that need to be adhered to?
As you can see, I'm an XML ignoranti and any assistance will be most gratefully received.
d.Hi Frances,
Please be aware that I have not got any ePubs to the retail stage as yet, I was working flatout on a bunch of ePubs for a few months when the project got put on the backburner — so my experience is limited.
I'm not sure what your process is, but InDesign CS4 does an OK job of creating ePubs — just so long as you set the files up correctly (eg. the easiest way to get page breaks between chapters is to save each chapter as a separate InDesign file and then combine them in a book. ALSO, everything should be styled using paragraph, character and oject styles)
Unless CS5 has SIGNIFICANT upgraded support for ePub, you might be wasting your money.
Check out the excellent tutorials by Gabriel Powell
He gives the most outstanding introduction to ePUB from InDesign I've yet seen.
PDF
http://www.creativepro.com/article/making-ebooks-indesign-part-1
Video
http://instantindesign.com/index.php?view=413
A couple of things I found I needed to do to get ePubs looking right in anything other than ADE:
• I got a better result if I wrote my own CSS — InDesign does not do a good job of this at all, AFAIC. Export style names only and use these as the basis for your CSS.
• Indesign fails to list fonts in the manifest, so if you want to specify your own fonts you need to add them manually and reference them in the manifest. Don't bother trying to embed fonts at export — it causes too many problems, it seems.
• The only thing I need to do in the xhtml files is fix a few non-alpha characters sometimes (like bullets, apostrophes, quotes, etc) I've no idea why these sometimes fail and sometimes don't.
FYI:
I use both Calibre and ADE to view ePubs — because they will each highlight different issues.
I built my CSS and a few other bits and pieces in Text Edit — this makes it easy to re-use things like the CSS for multiple publications.
I use PDFXML Inspector to do the editing — this allows siginificant editing capability without the need to unpack the ePub.
And I use Terminal to repackage ePubs (ie. after adding a fonts folder, or whatever) — using the command lines in Gabriel Powell's tutorial.
ie. I've spent nothing on additional software — it's all either free or already on the Mac.
It's a very steep, frustrating learning curve — LOTS of trial and LOTS of error. But it's also fun.
Good luck
d. -
Editing XML stored in an Oracle database
We are planning to store many thousands of text articles in an
Oracle database, in XML format.
Once stored we need an easy interface to allow librarians and
lawyers to edit these documents. Does Oracle have its own
integrated XML editor (i.e. one that opens files from the DB and
saves them to the DB)?
I know of one 3rd party product that can do this, and many
others that can just edit file system files. However I hoped
Oracle would have either have a product, or have a partnership
with a company that does.
Many thanks
Nigel
nullOracle does not have anything announced at this time, however
you might want to check out ADEPT from Arbortext
(www.arbortext.com).
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
Nigel Robson (guest) wrote:
: We are planning to store many thousands of text articles in an
: Oracle database, in XML format.
: Once stored we need an easy interface to allow librarians and
: lawyers to edit these documents. Does Oracle have its own
: integrated XML editor (i.e. one that opens files from the DB
and
: saves them to the DB)?
: I know of one 3rd party product that can do this, and many
: others that can just edit file system files. However I hoped
: Oracle would have either have a product, or have a partnership
: with a company that does.
: Many thanks
: Nigel
null
Maybe you are looking for
-
Iphone 4 does not stay connected to my network
Since upgrading to 6.1, my iPhone 4 does not stay connected to my network. I have to input my password each time I leave my house. My other devices stay connected, so the issue is with the upgrade. Has anyone found a way to keep their IPhone conne
-
I have windows 7 64 and downloaded ADE but cant open library book
I checked out books from my local library to read on my laptop but ADE says file corrupt. Deleated everything and re downloaded but still wont open. Contacted library and they told me to uninstall then reinstall. I also checked out another ebook and
-
Hi Please do help me. Data: dmshb(11), "amount in SEK or EUR amount_1 LIKE dfkkop-betrw. " of length 13 and decimal 2 with +/-sign amount_1 = ' 91111111.00-'. dmshb = amount. the result of this is dmshb = *111111.0
-
5D Mark III tethering to Lightroom
Is there a way to shoot with my 5D Mark III tethered to Lightroom on a Windows 8 computer and transfer only jpg images to Lightroom, and write the RAW files to the SD card? Lawrence
-
Problems with SuSE Linux 10 and JMF
Hi, I know that this is a problem of many other people who are working with JMF and I hope we can now find a solution for this problem. The problem is, that after installing the Java Media Framework and running the jmfinit Programm, the jmfinit progr