Text split issue in XML











up vote
0
down vote

favorite












Am facing issue of line split in xml file. The line which is present as single line in docx is split into 2 or 3 text tags in xml. Please find the sample xml paragraphs below for better approach of the problem.
As per docx, the lines are like:
"Do not use This tablet if you:
• are allergic (hypersensitive) to This tablet or any other medicines containing this chemical or any of the other ingredients of this Tablet."



Any help regarding this would be appreciated.
Thanks in advance.



XMl sample paragraph is below:



    <w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:autoSpaceDE w:val="false"/>
<w:rPr></w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Bold" w:ascii="Times-Bold" w:hAnsi="Times-Bold"/>
<w:b/>
<w:bCs/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve">Do not use </w:t>
</w:r>
<w:r>
<w:rPr>
<w:b/>
<w:lang w:val="en-GB"/>
</w:rPr>
<w:t>This tablet if you:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Roman" w:ascii="Times-Roman" w:hAnsi="Times-Roman"/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve"></w:t>
<w:br/>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="12"/>
</w:numPr>
<w:autoSpaceDE w:val="false"/>
<w:ind w:left="720" w:hanging="360"/>
<w:rPr></w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Roman" w:ascii="Times-Roman" w:hAnsi="Times-Roman"/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve">are allergic (hypersensitive) to </w:t>
</w:r>
<w:r>
<w:rPr>
<w:lang w:val="en-GB"/>
</w:rPr>
<w:t>This tablet or any other medicines containing this chemical or any of the other ingredients of this Tablet.</w:t>
</w:r>
</w:p>









share|improve this question






















  • Did you also have a question?
    – Robby Cornelissen
    Nov 19 at 7:06










  • A single line in a docx file will be split into multiple XML elements if there is any change in formatting, such as bolded, italicized, or colored text. If you want it all in the same element, you need to make sure that it's all formatted the same. In your case, Do not use is a bolded font while the rest isn't.
    – Snake14
    Nov 19 at 7:17












  • As per Docx "Do not use This tablet if you:" is in BOLD and remaining text isn't..
    – Md.Sam
    Nov 19 at 8:20















up vote
0
down vote

favorite












Am facing issue of line split in xml file. The line which is present as single line in docx is split into 2 or 3 text tags in xml. Please find the sample xml paragraphs below for better approach of the problem.
As per docx, the lines are like:
"Do not use This tablet if you:
• are allergic (hypersensitive) to This tablet or any other medicines containing this chemical or any of the other ingredients of this Tablet."



Any help regarding this would be appreciated.
Thanks in advance.



XMl sample paragraph is below:



    <w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:autoSpaceDE w:val="false"/>
<w:rPr></w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Bold" w:ascii="Times-Bold" w:hAnsi="Times-Bold"/>
<w:b/>
<w:bCs/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve">Do not use </w:t>
</w:r>
<w:r>
<w:rPr>
<w:b/>
<w:lang w:val="en-GB"/>
</w:rPr>
<w:t>This tablet if you:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Roman" w:ascii="Times-Roman" w:hAnsi="Times-Roman"/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve"></w:t>
<w:br/>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="12"/>
</w:numPr>
<w:autoSpaceDE w:val="false"/>
<w:ind w:left="720" w:hanging="360"/>
<w:rPr></w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Roman" w:ascii="Times-Roman" w:hAnsi="Times-Roman"/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve">are allergic (hypersensitive) to </w:t>
</w:r>
<w:r>
<w:rPr>
<w:lang w:val="en-GB"/>
</w:rPr>
<w:t>This tablet or any other medicines containing this chemical or any of the other ingredients of this Tablet.</w:t>
</w:r>
</w:p>









share|improve this question






















  • Did you also have a question?
    – Robby Cornelissen
    Nov 19 at 7:06










  • A single line in a docx file will be split into multiple XML elements if there is any change in formatting, such as bolded, italicized, or colored text. If you want it all in the same element, you need to make sure that it's all formatted the same. In your case, Do not use is a bolded font while the rest isn't.
    – Snake14
    Nov 19 at 7:17












  • As per Docx "Do not use This tablet if you:" is in BOLD and remaining text isn't..
    – Md.Sam
    Nov 19 at 8:20













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Am facing issue of line split in xml file. The line which is present as single line in docx is split into 2 or 3 text tags in xml. Please find the sample xml paragraphs below for better approach of the problem.
As per docx, the lines are like:
"Do not use This tablet if you:
• are allergic (hypersensitive) to This tablet or any other medicines containing this chemical or any of the other ingredients of this Tablet."



Any help regarding this would be appreciated.
Thanks in advance.



XMl sample paragraph is below:



    <w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:autoSpaceDE w:val="false"/>
<w:rPr></w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Bold" w:ascii="Times-Bold" w:hAnsi="Times-Bold"/>
<w:b/>
<w:bCs/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve">Do not use </w:t>
</w:r>
<w:r>
<w:rPr>
<w:b/>
<w:lang w:val="en-GB"/>
</w:rPr>
<w:t>This tablet if you:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Roman" w:ascii="Times-Roman" w:hAnsi="Times-Roman"/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve"></w:t>
<w:br/>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="12"/>
</w:numPr>
<w:autoSpaceDE w:val="false"/>
<w:ind w:left="720" w:hanging="360"/>
<w:rPr></w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Roman" w:ascii="Times-Roman" w:hAnsi="Times-Roman"/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve">are allergic (hypersensitive) to </w:t>
</w:r>
<w:r>
<w:rPr>
<w:lang w:val="en-GB"/>
</w:rPr>
<w:t>This tablet or any other medicines containing this chemical or any of the other ingredients of this Tablet.</w:t>
</w:r>
</w:p>









share|improve this question













Am facing issue of line split in xml file. The line which is present as single line in docx is split into 2 or 3 text tags in xml. Please find the sample xml paragraphs below for better approach of the problem.
As per docx, the lines are like:
"Do not use This tablet if you:
• are allergic (hypersensitive) to This tablet or any other medicines containing this chemical or any of the other ingredients of this Tablet."



Any help regarding this would be appreciated.
Thanks in advance.



XMl sample paragraph is below:



    <w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:autoSpaceDE w:val="false"/>
<w:rPr></w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Bold" w:ascii="Times-Bold" w:hAnsi="Times-Bold"/>
<w:b/>
<w:bCs/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve">Do not use </w:t>
</w:r>
<w:r>
<w:rPr>
<w:b/>
<w:lang w:val="en-GB"/>
</w:rPr>
<w:t>This tablet if you:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Roman" w:ascii="Times-Roman" w:hAnsi="Times-Roman"/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve"></w:t>
<w:br/>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="12"/>
</w:numPr>
<w:autoSpaceDE w:val="false"/>
<w:ind w:left="720" w:hanging="360"/>
<w:rPr></w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:cs="Times-Roman" w:ascii="Times-Roman" w:hAnsi="Times-Roman"/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve">are allergic (hypersensitive) to </w:t>
</w:r>
<w:r>
<w:rPr>
<w:lang w:val="en-GB"/>
</w:rPr>
<w:t>This tablet or any other medicines containing this chemical or any of the other ingredients of this Tablet.</w:t>
</w:r>
</w:p>






xml






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 19 at 7:04









Md.Sam

1




1












  • Did you also have a question?
    – Robby Cornelissen
    Nov 19 at 7:06










  • A single line in a docx file will be split into multiple XML elements if there is any change in formatting, such as bolded, italicized, or colored text. If you want it all in the same element, you need to make sure that it's all formatted the same. In your case, Do not use is a bolded font while the rest isn't.
    – Snake14
    Nov 19 at 7:17












  • As per Docx "Do not use This tablet if you:" is in BOLD and remaining text isn't..
    – Md.Sam
    Nov 19 at 8:20


















  • Did you also have a question?
    – Robby Cornelissen
    Nov 19 at 7:06










  • A single line in a docx file will be split into multiple XML elements if there is any change in formatting, such as bolded, italicized, or colored text. If you want it all in the same element, you need to make sure that it's all formatted the same. In your case, Do not use is a bolded font while the rest isn't.
    – Snake14
    Nov 19 at 7:17












  • As per Docx "Do not use This tablet if you:" is in BOLD and remaining text isn't..
    – Md.Sam
    Nov 19 at 8:20
















Did you also have a question?
– Robby Cornelissen
Nov 19 at 7:06




Did you also have a question?
– Robby Cornelissen
Nov 19 at 7:06












A single line in a docx file will be split into multiple XML elements if there is any change in formatting, such as bolded, italicized, or colored text. If you want it all in the same element, you need to make sure that it's all formatted the same. In your case, Do not use is a bolded font while the rest isn't.
– Snake14
Nov 19 at 7:17






A single line in a docx file will be split into multiple XML elements if there is any change in formatting, such as bolded, italicized, or colored text. If you want it all in the same element, you need to make sure that it's all formatted the same. In your case, Do not use is a bolded font while the rest isn't.
– Snake14
Nov 19 at 7:17














As per Docx "Do not use This tablet if you:" is in BOLD and remaining text isn't..
– Md.Sam
Nov 19 at 8:20




As per Docx "Do not use This tablet if you:" is in BOLD and remaining text isn't..
– Md.Sam
Nov 19 at 8:20

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53369770%2ftext-split-issue-in-xml%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53369770%2ftext-split-issue-in-xml%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin