I need to append the image element of my XML below the first paragraph of the body element as an HTML img tag using XSLT. Can anybody show me how to do this?
<pages>
<entry id="18">
<title handle="design">Design</title>
<image size="240 KB" path="/uploads" type="image/jpeg">
<filename>design.jpg</filename...
In the example code below, I have a question about the List. My prof adds the Document object to the ArrayList. It seems like this would just add the one Document object to the list, and not each individual Node. But then looking at the while loop, it seems like he gets the item at index 0, parses the information, then removes that it...
I have just started a project that involves me sending data using POST in HTML forms to a another companies server. This returns XML. I need to process this XML to display certain information on a web page.
I am using PHP and have no idea where to start with how to access the XML. Once I knwo how to get at it I know how to access it usi...
I'm having problems while parsing a XML file. The XML schema used is:
<xsd:complexType name="QuoteFIBondPrice">
<xsd:complexContent>
<xsd:sequence>
<xsd:element name="BidPrice" type="QuoteFIBondValue" minOccurs="0"/>
<xsd:element name="MidPrice" type="QuoteFIBondValue" minOccurs="0"/>
<xsd...
I'm trying to create a script that will delete all user properties for a particular individual. I'm able to use an api call to get the users' properties. And I'm trying use a delete api to remove each property. But I'm having an issue doing so. Below is the code:
$delete = "http://www.ourwiki.com/@api/DELETE:users/$user_id/properties/%s...
Let's say I have a column in a table where the datatype is XML. I have a specific value I want query for in an xml tag that is unique(no repeating) in the XML. How do I do this?
Something like:
select * from MyTable
where XMLColumn.TagImLookingAt.Value = @QueryValue
...
I have a wix installer that will install an XML file and then modify it. Installation works great. Today, I needed to add a couple of nodes to this XML file. So I modified the original file and then added some additional instructions to wix to assign these items values.
Well, I get an error every time saying that it cannot find the n...
How can I specify the Request object formatting in XML? My web services look like this:
[WebMethod]
public string MethodName(string str, string str2)
{
if (random())
return "123";
else
return "no";
}
Everything is in strings. How do I specify to a consumer what to request in XML? I am used to specifying this as...
Hello everybody.
I’ve got a problem witch I’ve been trying to solve almost for a week now, but it seems that, unfortunately, I can’t manage it by myself.
Maybe somebody could help me.
I’ve got this type of source XML:
<data>
<para1>24499</para1>
<para2>32080148</para2>
<para4>20e500cc6008d0f8ab1fd108b220ca261f85edd9</para4>
<para6...
I need to create a local xml file from a rails application and then copy it to a location on another server.
I have tried using the File.new option to create a new file but it gives me an error saying the file does not exist. After looking closer at the documentation it says that File.new opens a file that already exists.
I can't see ...
As the title states, I would like to implement a Hierarchical configuration in my application. The configuration system in IIS7 is basically what I need.
Configuration applies to a Hierarchical collection of objects
Defualt configuration is applied to the root node
Individual settings propagate down the hiearchy
At any point in the hi...
So I'm trying to follow this tutorial... to learn android, and I'm having a hard time because I feel like the tutorial was written with errors, and its hard to try and learn when you are teaching yourself errors..
Here is what the tutorial says:
Start by creating a new todolist_item.xml resource in the res/layout folder. It will speci...
What are my options if I want to create a simple XML file in python? (library wise)
The xml I want looks like:
<root>
<doc>
<field1 name="blah">some value1</field1>
<field2 name="asdfasd">some vlaue2</field2>
</doc>
</root>
...
How would one write an xsd to represent the xml shown below (taken from http://static.springsource.org/spring-ws/sites/2.0/reference/html/why-contract-first.html)?
<flight number="KL1117">
<passengers>
<passenger>
<name>Arjen Poutsma</name>
<flight href="KL1117" />
</passenger>
</passengers>
</flight>
In this c...
Hi Everyone,
For some reason, my addChild and addAttribute functions only seem to work when I enter in direct strings. They don't work when I enter in a variable string that I received from a html form POST.
Anyone know the reason why?
$question = "What is your name?";
$entry->addChild("Question")->addAttribute("text",$question);
...
Hi guys,
I wonder if it possible to work with HTTParty (http://github.com/jnunemaker/httparty) request results as an object.
Currently i use string keys to access to values of result:
result["imageurl"] or result["address"]["street"]
If i were in JavaScript I could simply use:
result.imageurl or result.address.street
Regards,
Alexe...
I have a generic function that I use to pass SOAP commands. I need to view the RAW XML data that is being sent to the server for diagnosing an error. How do i do that?
...
I want to add an attribute to every tag in my xml, which is incrementing using either awk, sed, perl or plain shell cmd
For Eg:
<tag1 key="123">
<tag2 abc="xf d"/>
<tag3 def="d2 32">
</tag3>
</tag1>
I am expecting the following output
<tag1 key="123" order="1">
<tag2 abc="xf d" order="2"/>
<tag3 def="d2 32" order="3">
...
Hi all,
I wan t to upload the xml data to the sql table. I am passing the xml data from .net(c#)(Working fine)
code:
ALTER PROCEDURE [dbo].[BookDetails_Insert] (@xml xml)
AS
insert into BookDetails (Pages,Descriptions)
SELECT
ParamValues.PLName.value('.','int'),
ParamValues.PLDEscr.value('.','text')
FROM
@xml.node...
How to export WordPress posts to XML or CSV? I am looking for a neat way to do it with the help of PHP.
Note: I don't want to do it via the admin panel because I want to automate it.
...