Click here to Skip to main content
15,890,690 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralUnwanted junk... Pin
CherezZaboro3-Dec-04 8:45
CherezZaboro3-Dec-04 8:45 
GeneralRe: Unwanted junk... Pin
Stuart Dootson3-Dec-04 22:13
professionalStuart Dootson3-Dec-04 22:13 
GeneralUnwanted junk... Pin
CherezZaboro3-Dec-04 8:40
CherezZaboro3-Dec-04 8:40 
GeneralBuilding a 'skeletal' DOM based upon a schema Pin
Jnewg52-Dec-04 10:09
Jnewg52-Dec-04 10:09 
GeneralRe: Building a 'skeletal' DOM based upon a schema Pin
Stuart Dootson2-Dec-04 11:12
professionalStuart Dootson2-Dec-04 11:12 
Generalxml & xsd question Pin
Shahin772-Dec-04 4:52
Shahin772-Dec-04 4:52 
Questionhow to get it? xml & xsd Pin
Shahin772-Dec-04 4:49
Shahin772-Dec-04 4:49 
GeneralStreaming namespace replacing Pin
Member 15128341-Dec-04 23:41
Member 15128341-Dec-04 23:41 
Hi there,

On the project I'm currently busy I have the following issue:

We are receiving SOAP 1.1 messages (according to SOAP 1.1 schema) and need to output messages conforming to a schema in another namespace. The structure of both schema's are identical as you can see below.

SOAP schema instance:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<SomeHeader/>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<SomeElement/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Output message schema instance:
<BLA:Envelope xmlns:BLA="http://SomeOtherNamespace">
<BLA:Header>
<SomeHeader/>
</BLA:Header>
<BLA:Body>
<SomeElement/>
</BLA:Body>
</BLA:Envelope>

Okay here the challenge:

We're in need for a high performance transformation of these two messages. The way we would love to see it is having the transform implemented completly streaming.
- input stream read when output stream is being readon (pull).
- low memory footprint.


Environment: C# on .NET platform.

Options I'm considering:

1. Implementing a streaming namespace replacing XML text reader.
A stream is read by a custom XMLTextReader that replaces the xml namespace declaration so the message is implicetly converted.
The problem with this solution is that the streaming XML text reader does not provide a way to generate an output stream. Using the XMLTextWriter object and WriteNode method reads the entire message and puts out the message to the underlying stream. But this is push technology and the process is blocked until the reading and writing is done.

2. Using streaming XSLT (pull)
I have not been able to get this to work. Anybody can give me a hand?

3. Am I overlooking something? Please let me know.


Kind regards for your patience and hopefully a good solution.

Bas

GeneralXML template from xsd document Pin
Anonymous1-Dec-04 21:50
Anonymous1-Dec-04 21:50 
GeneralRe: XML template from xsd document Pin
Stuart Dootson2-Dec-04 1:07
professionalStuart Dootson2-Dec-04 1:07 
QuestionIs this legal, barely? Pin
john john mackey30-Nov-04 14:07
john john mackey30-Nov-04 14:07 
AnswerRe: Is this legal, barely? Pin
Christian Graus30-Nov-04 14:39
protectorChristian Graus30-Nov-04 14:39 
AnswerRe: Is this legal, barely? Pin
Michael A. Barnhart7-Dec-04 11:46
Michael A. Barnhart7-Dec-04 11:46 
AnswerRe: retrive the XML Data? Pin
DavidNohejl30-Nov-04 2:03
DavidNohejl30-Nov-04 2:03 
Questionretrive the XML Data? Pin
sudheerreddy30-Nov-04 1:51
sudheerreddy30-Nov-04 1:51 
GeneralTree View with text as nodes..help please Pin
help_cplus25-Nov-04 0:22
help_cplus25-Nov-04 0:22 
GeneralRe: Tree View with text as nodes..help please Pin
help_cplus25-Nov-04 0:25
help_cplus25-Nov-04 0:25 
GeneralXML Web Service Pin
Rofida Refat23-Nov-04 20:33
sussRofida Refat23-Nov-04 20:33 
GeneralXSLT with Dataset.SaveXML Pin
PeterNilsJohnson23-Nov-04 2:58
PeterNilsJohnson23-Nov-04 2:58 
GeneralSQLXML Issue Pin
Anonymous22-Nov-04 19:24
Anonymous22-Nov-04 19:24 
GeneralXSL with Javascript issue when using XslTransform. Pin
Bart-Man22-Nov-04 8:24
Bart-Man22-Nov-04 8:24 
GeneralRe: XSL with Javascript issue when using XslTransform. Pin
DavidNohejl22-Nov-04 8:44
DavidNohejl22-Nov-04 8:44 
GeneralRe: XSL with Javascript issue when using XslTransform. Pin
Bart-Man22-Nov-04 9:00
Bart-Man22-Nov-04 9:00 
GeneralRe: XSL with Javascript issue when using XslTransform. Pin
DavidNohejl22-Nov-04 9:36
DavidNohejl22-Nov-04 9:36 
GeneralRe: XSL with Javascript issue when using XslTransform. Pin
Bart-Man22-Nov-04 10:12
Bart-Man22-Nov-04 10:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.