How to identify '\r' carriage return in openxml

Home Forums WordprocessingML How to identify '\r' carriage return in openxml

This topic contains 4 replies, has 2 voices, and was last updated by  Manu_TR 8 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3627

    Manu_TR
    Participant

    How to identify ‘\r’ carriage return in openxml?

    Thanks

    #3630

    Eric White
    Keymaster

    Hi Manu,

    Entering shift-Enter in Word, i.e. inserting a soft break inserts the w:br element, which is a child of the w:r element.

    There are some great tools that will help you with answering these types of questions. See the ‘Intro to Open XML’ screen-cast series, and look at the tools videos.

    Cheers, Eric

    #3643

    Manu_TR
    Participant

    Thanks Eric.

    But I have document which doesn’t have a line break element in document.xml. but document has many lines in it.

    And is there a way to extract the text all the sections separately using openxml?

    #3670

    Eric White
    Keymaster

    Hi Manu,

    I’d have to see the document to understand what you are seeing.

    One thing that you can’t get from the XML is the layout of the text – you can’t see how Word wraps lines and where the wrapping breaks are. This information is calculated by a layout engine inside of Word.

    Cheers, Eric

    #3679

    Manu_TR
    Participant

    Where can I upload the sample document?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.