|
How can I create a schema for the following?
<Data>
<Value unit="m/s">10</Value>
<Value unit="ºF">25</Value>
</Data>
I would like to have the following description in the xsd
<xs:complexType name="rootSchema">
<xs:sequence>
<xs:element name="Value" type="valueSchema" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="Multicalc" type="rootSchema" />
How do I write the definition of valueSchema?
(I hope I didn't make any mistakes in the definitions. I simplified things a bit compared to my own xsd.)
|
|
|
|
|
see if this works
<xs:complexType name="valueSchema">
<xs:simpleContent>
<xs:extension base="xs:integer">
<xs:attribute name="unit" type="xs:string" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
led mike
|
|
|
|
|
Thanks a bunch. It did the trick it seems.
|
|
|
|
|
I want to add rss feed into the html page, but I have a problem. When I displayed the xml file with xsl. It only works at IE, but doesn't work at Firefox.
Tell me why? Thanks.
|
|
|
|
|
josseph.zhang wrote: When I displayed the xml file with xsl. It only works at IE, but doesn't work at Firefox.
Tell me why?
You need to explain this in more detail:
josseph.zhang wrote: I displayed the xml file with xsl
led mike
|
|
|
|
|
I am assuming you are using the Style Sheet Processing Instruction,
<?xml-stylesheet type="text/xsl" href="filename.xslt"?><br /> . Not all browsers (especially their older versions) are able to transform XML using this Processing Instruction. However, the following link may be helpful: http://www.ibm.com/developerworks/web/library/x-think40/[^].
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Yes, you are clever.I used it.The link given is very useful to me. Thanks a lot.
|
|
|
|
|
All
I have a web service that has been working fine until yesterday evening, I don't remember making any changes, but for some reason since yesterday evening I am getting the message "WSE910: An error happened during the processing of a response message, and you can find the error in the inner exception. You can also find the response message in the Response property." with inner exception as "Root Element Missing". I checked the xml file generated and can't find anything mistakes in it. I am using the same machine as client/server so there is no point of time difference.
Appreciate your help
Sri
|
|
|
|
|
Srikant Talasila wrote: I am using the same machine as client/server so there is no point of time difference.
What does "no point of time difference" mean?
led mike
|
|
|
|
|
Do you know what a Root Element is?
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Hi,
I have a problem, I must create an XML document from Excel, but I don't know how to setup two primary nodes. XML document has this format
<?xml version="1.0" encoding="UTF-8" ?>
- <EasyfattProducts AppVersion="DaneaEasyfatt.2006.17.00">
- <Products>
- <Product>
<InternalID>1</InternalID>
<Code>xxx</Code>
<Description>xxx</Description>
</Product>
</Products>
</EasyfattProducts>
I'm using a project of Raymond Pang that I downloaded in this web-site.
Help me please!
Excuseme for my bad english!
|
|
|
|
|
izzy87 wrote: but I don't know how to setup two primary nodes.
That does not explain your problem. Maybe you should try again, and remember, we cannot read your mind.
led mike
|
|
|
|
|
Hello there
I am working on a 3D project, and I have xml files here but I want to transform them so they can be used. Does anyone know any good software for this
Thanks
Andrew McIntyre
|
|
|
|
|
Welcome to CodeProject
Take the time to read this handy forum guidelines article[^]
MrMcIntyre wrote: I have xml files here but I want to transform them so they can be used. Does anyone know any good software for this
Well, we are mostly software developers here, not clairvoyants.
You have what in XML files?
You want to transform into what?
So they can be used for what?
led mike
|
|
|
|
|
Well the XML files contain programming which will make the menus like for login or character creation ect.
Andrew McIntyre
|
|
|
|
|
I think you might be missing a concept here at codeproject. You are asking people to help for free. The least you can do is put in sufficient effort to communicate your situation and needs. What you have posted in this thread is not near that level of effort.
led mike
|
|
|
|
|
How can I put effort in if I want help on the subject.
Andrew McIntyre
|
|
|
|
|
MrMcIntyre wrote: How can I put effort in if I want help on the subject.
What is your damage dude?
led mike wrote: The least you can do is put in sufficient effort to communicate your situation and needs.
led mike
|
|
|
|
|
Can you emphasize for "your damage" what do you mean by this?
Andrew McIntyre
|
|
|
|
|
You are being too general with your request for help. There are all kinds of products that can transform any type of XML file. However, all projects have requirements and constraints which you failed to mention in regards to your XML files. Furthermore, XML can be tranformed into many different documents. So, what is your motivation?
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
I am making a virtual world virtual world require xml files for the menus and with lua files supporting the xml files.
Andy
|
|
|
|
|
Unfortunately, I don't know anything about this. Do you have any links or examples of what you need to do?
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
AndrewMcIntyre wrote: I am making a virtual world virtual world require xml files for the menus and with lua files supporting the xml files.
Having read a number of your questions it would appear that you believe you can conjure this virtual world from the ether with little or no effort on your part. I advised you some time ago that you need to spend a lot of time studying the basics before you can even begin to think about creating this grandiose project. Your first attempt at a simple Windows program here[^] demonstrated that you still have a long way to go.
Sorry to burst your balloon on this but none of the people answering questions, and writing articles here, got to where they now are without a lot of studying, hard work and dedication.
|
|
|
|
|
Hi! Expert
I am not so good in Macros. I have write a macro a few month before for a excel file. Now i receive same type of file but more Columns and rows.
Attached file:http://www.savefile.com/files/1788469
but unfortunately it will not work on this worksheets.there is 2 sheet in this file (Master and iwant this)
i want to transpose some cells into Rows.
i have a data about 9000
In Below mentioned Example: You see there is one Custcode Repeated 4 times with 1 Network and Prop Name but Four Childname and their ChildDOB in the Column
CustCode
networkname
PropName
ChildrenName
Child DOB
221000000133
Jind Cable Network
Ravinder Kumar
Swati
8-Mar-91
221000000133
Jind Cable Network
Ravinder Kumar
Meenakshi
9-Apr-95
221000000133
Jind Cable Network
Ravinder Kumar
Shubham
16-Dec-96
221000000133
Jind Cable Network
Ravinder Kumar
Atul
17-Jul-98
What I want (NOTE THIS IS NOT A COMPLETE HEADERS DATA I HAD HIDE SOME COLUMNS BECAUSE FOR BETTER CLARIFICATION)
Now, you can seen the difference between these two data specially the Childname and ChildDOB in 1st they both in columns but in 2nd one they both are in Row.
CustCode
networkname
PropName
ChildrenName
Child DOB
ChildrenName
Child DOB
ChildrenName
Child DOB
ChildrenName
Child DOB
221000000133
Jind Cable Network
Ravinder Kumar
Swati
8-Mar-91
Meenakshi
9-Apr-95
Shubham
16-Dec-96
Atul
17-Jul-98
Now take a 2nd example:
You see there is one Custcode Repeated 5 times with 1 Network But 2 Prop Name first one i.e Arjun Sharma have 3 Childname and with their ChildDOB ,But the second one i.e have 2 Childname and with their ChildDob. inColumns.
221000000232
City Communication
Arjun Sharma
Rajiv Sharma
10-Jul-79
221000000232
City Communication
Arjun Sharma
Suveta Sharma
13-Jan-81
221000000232
City Communication
Arjun Sharma
Seema Shurma
29-Oct-85
221000000232
City Communication
Parshotam Lal Bhalla
Kuldeep Bhalla
7-Sep-03
221000000232
City Communication
Parshotam Lal Bhalla
Isha Bhalla
24-Apr-05
What I want:
221000000232
City Communication
Arjun Sharma
Rajiv Sharma
10-Jul-79
Suveta Sharma
13-Jan-81
Seema Shurma
29-Oct-85
221000000232
City Communication
Parshotam Lal Bhalla
Kuldeep Bhalla
7-Sep-03
Isha Bhalla
24-Apr-05
You can see Difference Cleary. Specially Childname and ChildDOB.
Any Help will be Appreciate
Hardeep kanwar
|
|
|
|
|
Sorry For not mentioned the Macors
Sub sameoldcalvin()
'
' Macro3 Macro
'
Dim i As Long
Dim SearchRange As Range
Dim FindRow As Range
Dim pp As String
Range("G1").Select
Start:
Do
' Whole process loop counter = do it 9000 times
i = i + 1
ActiveCell.Offset(1, 0).Range("A1").Select
pp = ActiveCell.Value
Set SearchRange = Range("G:G")
Set FindRow = SearchRange.Find(pp, LookIn:=xlValues, lookat:=xlWhole)
If FindRow.Row = ActiveCell.Row Then
GoTo Start
Else
Selection.End(xlToLeft).Select
Selection.End(xlToLeft).Select
ActiveCell.Offset(0, 4).Range("A1:B1").Select
Selection.Cut
ActiveCell.Offset(-1, 0).Range("A1").Select
Selection.End(xlToRight).Select
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveSheet.Paste
ActiveCell.Offset(1, -2).Range("A1").Select
'delete
ActiveCell.Rows("1:1").EntireRow.Select
ActiveCell.Activate
Selection.Delete Shift:=xlUp
ActiveCell.Offset(-1, 3).Range("A1").Select
End If
Loop Until i = 9000
End Sub
|
|
|
|