Java API to parse XSD schema file
Anybody knows Java API to parse XSD schema file? I found XSOM (https://xsom.dev.java.net) but I doesn't seem to maintained anymore. ...
Anybody knows Java API to parse XSD schema file? I found XSOM (https://xsom.dev.java.net) but I doesn't seem to maintained anymore. ...
I am writing my own settings provider: public static class SettingsProvider { private const string SettingsFilePath = "Settings.xml"; private static ISettings _settings; public static ISettings Settings { get { if (_settings == null) { _settings = readSettings(); ...
The application needs versioning of the xml documents along with managing. The best java solution close to my requirement is Nuxeo. I need a solution specific to PHP. Please suggest a good open source Enterprise level content management system which should have a API through which I can communicate even from flex. ...
I am writing code that pulls data from database tables and writes them to an XML file (to be picked up by another process). There are bout 60,000 records, and each record can have multiple entites, i.e. a member can have several contacts, each contact can have several phone numbers, etc. The entire process takes several hours, and I've n...
Hello, Can anybody suggest a good tool to document the format of an XML document? I'm not looking for DTD or something that validates XML; I'm looking for something that helps me generate documentation that describes in plain language what each node/attribute/value is for. ...
I need to rearrange all the the child elements of an XML Document underneath the first Parent (and discard all other parent info) In the example below, I need all 4 child elements under Parent[ParentField=1] and discard Parent[ParentField=X] <xml> <Parent> <ParentField>1</ParentField> <Children> <Child> ...
Hi I need to post some xml info to a restful api can anyone give me a clue of how to do this? I'm using rails. Thanks in advance ...
My xml looks like <details> <addr> <streetAddressLine>90822 abc lane</streetAddressLine> <streetAddressLine>apt b</streetAddressLine> <!-- streetAddressLine element is repeatable --> <state>xyz</state> </addr> </details> I am looking for xpath expression which can give me the length of string-length(streetA...
For the life of me I cannot understand the XML::Twig documentation for entity handling. I've got some XML I'm generating with HTML::Tidy. The call is as follows: my $tidy = HTML::Tidy->new({ 'indent' => 1, 'break-before-br' => 1, 'output-xhtml' => 0, 'output-xml' => 1, 'char-encoding' => 'raw', }...
I have tried to get an XML file to sort and have had no luck. After a day and a-half, I need some help from an expert. Thanks. My XML File (shortened for the example): <?xml version="1.0" encoding="iso-8859-1"?> <deadlines> <deadline> <date>2010-06-01</date> <text>Application for Summer Due</text> </deadline> ...
How to get XmlSchema object from large string that contains all Xsd content? Thanks. ...
I have a simple XML, that I want to add a new root to. The current root is <myFields> and I want to add <myTable> so it would look like. <myTable> <myFields> . . </myFields> </myTable> ...
Hi We have an requirement in our project to browse & upload an XML file and show it on the datagrid, edit the grid and then save the contents to the database. I'm able to see examples that take a XML from a specific folder and show on the datagrid, but not able to see any examples that browse for a XML and then upload it. It would be gr...
Hi, I am creating a platform for some clients. Each client needs to have contacts and manage them in groups, categories (which depends of the group) and subcategories (which depends of the category). The database is going to be very big, and Im afraid about the performance. I want to optimize the database; now, I have these options: M...
I want to define a schema that allows child elements to occur in any order, similar to <choice minOccurs="0" maxOccurs="unbounded"> but will allow only one of each element, similar to <sequence minOccurs="1" maxOccurs="1"> can this be done? for example <Root> <ele1> <ele3> <ele2> </Root> <!--Valid--> And as below: <Root> <el...
this is what my query looks like: select top 5 cast(content_html as xml) as [prodxml], prodxml.value('data(ClassTemplate[1]', 'nvarchar(max) ') as prod2 from content where end_date >= getdate() and folder_id != 71682 and i keep getting: Msg 4121, Level 16, State 1, Line 1 Cannot find either column "prodxml" or the user-defined f...
Say I submit a form via Ajax and need a response from the server: Pass/fail indicator On fail, a list of validation errors with associated field ids/names, etc Is there a standard or best practice for the JSON format for such a structure? If so, I'd like to try to stick to it instead of coming up with my own convention. ...
I am attempting to utilize the USPS API to do some address verification/validation. I'm sending this XML to http://testing.shippingapis.com/ShippingAPITest.dll: <AddressValidateRequest%20USERID="xxxxx"><Address ID="0"><Address1></Address1><Address2>6406 Ivy Lane</Address2><City>Greenbelt</City><State>MD</State><Zip5></Zip5><Zip4></Zip4...
I'm having a problem with SIMPLE XML. I seem to have an array with dumping the whole object. However, when I try to access the array, I get a single element of the array back. Here is the full dump: SimpleXMLElement Object ( [@attributes] => Array ( [type] => array ) [person] => Array ( ...
Hi, a book I'm reading on XML says that to select all nodes in an XML file that have a specific attribute, use the syntax: //*/@attribute What I don't understand is why the asterisk is needed. As I understand it, the expression // selects all descendants of the root node. So, wouldn't //@lang, for example, select all descendants of th...