Working with well formed document : indent not within elements

Hello I'm regularly working with well formed document (but not valid) I love indent of oXygen but i did give me all i want because it adds whitespaces everywhere i love to find an option to indent such a way spaces WON'T be in the element example <A ID="1" REF="2"><B>foo</B><C>bar</C></A> becomes <A ID="1" REF="2"
<B>foo</B <C>bar</C </A>
with unlimited size (only making one element per lines) for the moment, i must do it with another tool Is there a simple way to do it in Oxygen ? Xmlizer

Hello, If you add A to the list of preserve space elements from Preferences - Editor - Format the whole element A will remain on a single line. Why do you need one element per line and without whitespace, like "><B>" and "><C>" ? It looks more readable for me with normal indenting like: <A ID="1" REF="2"> <B>foo</B> <C>bar</C> </A> If you don't need whitespace text nodes inside the A element you can remove them with the XSLT stylesheet that extracts the output data from your XML document. Usually you don't present the data stored in the XML document directly to the user. The data is processed with a XSLT stylesheet. Best regards, Sorin mozer wrote:
Hello
I'm regularly working with well formed document (but not valid) I love indent of oXygen but i did give me all i want because it adds whitespaces everywhere i love to find an option to indent such a way spaces WON'T be in the element
example
<A ID="1" REF="2"><B>foo</B><C>bar</C></A>
becomes
<A ID="1" REF="2"
<B>foo</B <C>bar</C
</A>
with unlimited size (only making one element per lines)
for the moment, i must do it with another tool
Is there a simple way to do it in Oxygen ?
Xmlizer _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

2005/8/19, Sorin Ristache <sorin@oxygenxml.com>:
Hello,
If you add A to the list of preserve space elements from Preferences - Editor - Format the whole element A will remain on a single line. Why do you need one element per line and without whitespace, like "><B>" and "><C>" ?
I need it because i get "one line xml" documents. And with oXygen i cannot go to the error if the line is too long. May be if i could go to the error and manipulate the document in one line i won't need this tool... And i don't want extra whitespaces in elements. And there is too much elements to add to preferences format
It looks more readable for me with normal indenting like:
<A ID="1" REF="2"> <B>foo</B> <C>bar</C> </A>
If you don't need whitespace text nodes inside the A element you can remove them with the XSLT stylesheet that extracts the output data from your XML document. Usually you don't present the data stored in the XML document directly to the user. The data is processed with a XSLT stylesheet.
It's not always simple to extract extra spaces in a generic manner, it's often specific to the DTD
Best regards, Sorin
mozer wrote:
Hello
I'm regularly working with well formed document (but not valid) I love indent of oXygen but i did give me all i want because it adds whitespaces everywhere i love to find an option to indent such a way spaces WON'T be in the element
example
<A ID="1" REF="2"><B>foo</B><C>bar</C></A>
becomes
<A ID="1" REF="2"
<B>foo</B <C>bar</C
</A>
with unlimited size (only making one element per lines)
for the moment, i must do it with another tool
Is there a simple way to do it in Oxygen ?
Xmlizer _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hello, Do a normal pretty-print without adding A to the list of preserve space elements. You will obtain: <A ID="1" REF="2"> <B>foo</B> <C>bar</C> </A> so the errors will point to the correct lines. You will remove the extra spaces later when you process the document. Best regards, Sorin mozer wrote:
I need it because i get "one line xml" documents. And with oXygen i cannot go to the error if the line is too long. May be if i could go to the error and manipulate the document in one line i won't need this tool...
And i don't want extra whitespaces in elements.

2005/8/19, Sorin Ristache <sorin@oxygenxml.com>:
Hello,
Do a normal pretty-print without adding A to the list of preserve space elements. You will obtain:
<A ID="1" REF="2"> <B>foo</B> <C>bar</C> </A>
so the errors will point to the correct lines. You will remove the extra spaces later when you process the document.
In fact, I just find another partial way to work : with the tree editor : i can validate the document find error and adjust element names and save (in "one line"), but i can't use refactoring with the default perspective i can use the outline, but i have to know where the problem is to use refactoring. I can use the refactoring from the outline (with the menu) but i can't access it by the popup menu or by shortcut ! Thank you very much for helping me finding a solution Best regards Xmlizer
Best regards, Sorin
mozer wrote:
I need it because i get "one line xml" documents. And with oXygen i cannot go to the error if the line is too long. May be if i could go to the error and manipulate the document in one line i won't need this tool...
And i don't want extra whitespaces in elements.
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hello, Errors listed in the Errors view include location informations about the error: the line and column of the element/attribute with the error. Double-clicking on the error in the Errors view will move the cursor in the editor panel at the location of the error. Can you give an example for not going to the error location ? Best regards, Sorin mozer wrote:
And with oXygen i cannot go to the error if the line is too long.

2005/8/19, Sorin Ristache <sorin@oxygenxml.com>:
Hello,
Errors listed in the Errors view include location informations about the error: the line and column of the element/attribute with the error. Double-clicking on the error in the Errors view will move the cursor in the editor panel at the location of the error. Can you give an example for not going to the error location ?
With big "one line" files i just don't go to the location on double click (or it's just too long) It appear to work sometimes but i can't undestand why and when
Best regards, Sorin
mozer wrote:
And with oXygen i cannot go to the error if the line is too long.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
mozer
-
Sorin Ristache