If anyone read my last question, this is somewhat of a continuation of it.
AFAIK, when using jQuery UI's Autocomplete ability to grab data from an XML file as its data source, you can only do it from one file in the Ajax call.
http://www.finalfantasyunion.com/includes/xml/games.xml
I'm planning to have a series of XML files like that ...
Hi, I'd like to pass some parameters to a stateless session bean. I'd like to do something like I do when I configure a Servlet initial parameters in the web.xml file. Thanks
...
Simplified version of my problem:
I have some variable, that contains some xml.
x = "foo
I'd like to generate XML that looks like this:
x <-- contents of x
So I have an xml builder partial that looks like
xml.map do
xml.other_stuff do
end
end
how do I insert x in there?
If the question isn't clear just yell at me and I'll r...
Hi there,
Not sure if this question makes for some poor performance down the track, but seems to at least feel "a better way" right now..
What I am trying to do is this:
I have a table called CONTACTS which amongst other things has a primary key field called memberID
I also have an XML field which contains the ID's of your friends (fo...
I'm using python's lxml to validate xmls against a schema. I have a schema with an element:
<xs:element name="link-url" type="xs:anyURL"/>
and I test, for example, this (part of an) xml:
<a link-url="server/path"/>
I would like this test to FAIL because the link-url doesn't start with http://. I tried switching anyURI to anyURL but...
I'm trying to make a website more dinamically with splitting it in parts. I had a XML file for the first page that now has been converted to 4 files: index.xml, menu.xml, sidebar.xml and footer.xml.
(Updated)
I include correctly the XML's on the index.xsl file. Now I need to include the .xls that they will use. Actually I've it all in ...
My goal is to replace all instances of a trailing - to a trailing + within tag brackets. Lets assume the line to be replaced looks like this:
<h> aa- aa- </h> <h> ba- ba- </h>
and should afterwards look like
<h> aa+ aa+ </h> <h> ba+ ba+ </h>
First I tried this expression:
s/<h>(.*?)-(.*?)<\/h>/<h>$1+$2<\/h>/g;
which yielded th...
My previous post got the tags partially stripped, so here it is again:
My goal is to replace all instances of a trailing - to a trailing + within tag brackets. Lets assume the line to be replaced looks like this:
<h> aa- aa- </h> <h> ba- ba- </h>
and should afterwards look like
<h> aa+ aa+ </h> <h> ba+ ba+ </h>.
First I tried th...
So i have an XML document that looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<gesmes:Envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01" xmlns="http://www.ecb.int/vocabulary/2002-08-01/eurofxref">
<gesmes:subject>Reference rates</gesmes:subject>
<gesmes:Sender>
<gesmes:name>European Central Bank</gesme...
It is easy to set a converter for a certain type (http://xstream.codehaus.org/javadoc/com/thoughtworks/xstream/XStream.html gives an example):
xstream.registerConverter(new SqlTimestampConverter());
xstream.registerConverter(new DynamicProxyConverter());
I would like to register a converter, but on different element names. The Convert...
Given an XML layout like this, I'm trying to create a XSD schema to validate it.
<RootNode>
<ChildA />
<ChildC />
<ChildB />
<ChildB />
<ChildA />
</RootNode>
The requirements are as follows:
ChildA, ChildB and ChildC may occur in any order. (<xs:sequence> unsuitable)
ChildA is mandatory but may occur multiple times.
Child...
I'm serialising a List of a class and I'm not happy about the generated XML output.
[Serializable()]
public class Foo
{
[XmlAttribute]
public String Property1 { get; set; }
public Foo() { }
}
public class Foo2
{
List<Foo> _list = new List<Foo>()
{
new Foo(){ Property1="hello"}
};
// ...
// code f...
Hi,
I'm trying to wrap my head around PHP and XML.
I'm trying to do something:
There is an XML document that I'm retrieving via cURL (also tried various PHP XML library parameters such as XMLReader::open($url) etc. The method of retrieval doesn't matter; I can and have got this part working.
The problem is parsing the XML on the re...
I'm using a PHP file to output an XML Document.
I'm using a CSS file to format that XML Document.
My browser (Safari) won't show the formatting unless I feed it a file with an xml extension. I thought the header took precedence over the extension.
parser.php (after php processing)
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-st...
I was reading XML is not S-Expressions. XML scoping is kind of strict, as are S-expressions. And in every programming language I've seen, you can't have the following:
<b>BOLD <i>BOTH </b>ITALIC</i> == BOLD BOTH ITALIC
It's not even expressible with S-Expressions:
(bold "BOLD" (italic "BOTH" ) "ITALIC" ) == :(
Does any programming l...
Hi,
I have xml formatted by the atom formatter.
The atom formatter seems to specify namespaces inline multiple times.
Is there any way to easily consolidate these.
The example below shows namespaces specified three times for each property.
This is horrible.
I would like prefixes at the top of the document and no namespaces in the docu...
Background: I have a Java application that many programming clients interface with. Recently, a few clients wanted me to develop an API to allow them to inherit my application's Java classes in their Ruby documents without having to change their developing environment to Jruby - they want it to remain Ruby on Rails.
In this post, it wa...
Bellow is my SQL syntax
CREATE TABLE [dbo].[Security_Module_Info](
[Client_Company_ID] [smallint] NOT NULL,
[Module_ID] [tinyint] NOT NULL,
[Module_Name] [nvarchar](50) NULL,
[Module_Description] [nvarchar](200) NULL,
[Is_Active] [bit] NULL,
[Active_Date] [smalldatetime] NULL,
[Record_Status] [tinyNULL,
[...
I need to parse several large size XML files (one is ~8GB, others are ~4MB each) and merge them. Since both SAX and Tie::File are not suitable due to memory and time issues, I decided to try Twig.
Suppose each XML file is composed of several elements as follows:
<class name=math>
<student>luke1</student>
... (a very very long...
I am attempting to write an app that decodes some unsigned long values. Format of each value is represented in XML as:
<Project Name="Project1">
<Message Name="a">
<BitField high="31" low="28">
<value>0001</value>
<value>1010</value>
</Bitfield>
<BitField high="27" low="17">
<value>000111101</value>
</BitField>
<Bit...