# ParaView output message - vtkXMLParser Error parsing XML

**URL:** https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816
**Category:** Development
**Created:** [January 21, 2022, 6:05am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816 "2022-01-21T06:05:51Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 21, 2022, 6:05am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/1 "2022-01-21T06:05:51Z")

</div>

Hello,  
I got the executable file (paraview.exe) by building the latest ParaView source on Windows. However, when this file is executed, the following output message is displayed.  
Why is this output message coming out?  
Is there any way to get rid of this message?

ERROR: In C:\pv\pv\VTK\IO\XMLParser\vtkXMLParser.cxx, line 379  
vtkPVXMLParser (000002EF88900710): Error parsing XML in stream at line 1059, column 36, byte index 49204: not well-formed (invalid token)

 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/763ef9f4560422db9914be837e4c6ab4a296e786.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 21, 2022, 2:12pm UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/2 "2022-01-21T14:12:10Z")

</div>

Is your ParaView fonctionnal ?  
Any reason not to use the binary release ?  
Which CMake option are you enabling ?  
Which commit are you building exactly ?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [January 21, 2022, 2:17pm UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/3 "2022-01-21T14:17:33Z")

</div>

Check your source code. Are there conflict markers or some such? Seems to me that the source code is not clean.

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [January 23, 2022, 10:12pm UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/4 "2022-01-23T22:12:43Z")

</div>

What size is your XML file?

---

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 23, 2022, 11:59pm UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/5 "2022-01-23T23:59:35Z")

</div>

ParaView’s function seems to be working fine.  
The reason not to use binary release is to customize ParaView’s Menu and try it out.  
The cmake option turned on PARAVIEW\_USE\_PYTHON and PARAVIEW\_USE\_MPI, and CMAKE\_BUILD\_TYPE was set to Release.  
The source code commit used for the build is as follows.

commit eab2df27f0dca1c71c3c2b1c9e17447481a3b92e (HEAD → master, origin/master, origin/HEAD)  
Merge: 144ae5a4dc e78f44fa0f  
Author: Utkarsh Ayachit [utkarsh.ayachit@kitware.com](mailto:utkarsh.ayachit@kitware.com)  
Date: Thu Jan 6 17:21:43 2022 +0000

```
Merge topic 'catalyst-mpi-init'

e78f44fa0f catalyst: avoid calling MPI methods if MPI is not initialized

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Corey Wetterer-Nelson <c.wetterer-nelson@kitware.com>
Merge-request: !5436
```

---

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 24, 2022, 12:01am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/6 "2022-01-24T00:01:05Z")

</div>

The output message from the executable file built in Windows 10 (Korean locale) does not appear in the executable file built in Windows 10 (English locale). Could it be related to the encoding of the source code?

---

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 24, 2022, 12:03am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/7 "2022-01-24T00:03:18Z")

</div>

This is the output message generated when the executable file is executed. I did not enter any xml file.

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [January 24, 2022, 12:07am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/8 "2022-01-24T00:07:43Z")

</div>

What does the call stack show?

---

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 24, 2022, 12:12am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/9 "2022-01-24T00:12:50Z")

</div>

Only the output message is shown, the call stack is not visible. This is because it is a release mode executable.

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [January 24, 2022, 12:14am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/10 "2022-01-24T00:14:34Z")

</div>

Then I suggest you build _RelWithDebInfo_ and put a breakpoint in **vtkXMLParser::ReportXmlParseError**

---

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 24, 2022, 12:32am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/11 "2022-01-24T00:32:05Z")

</div>

Thanks for telling me how.  
Is it possible to set breakpoints in visual studio?

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [January 24, 2022, 12:47am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/12 "2022-01-24T00:47:07Z")

</div>

Yes.  
Just click in the left most column of the IDE at the desired line of code. Then right click on the _Paraview_ project in the Solution Explorer “Set as StartUp Project” and run “Local Windows Debugger”

 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/8f1d4cd3800f60fff8590cc4ba26702052f7a262.png)

---

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 24, 2022, 12:49am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/13 "2022-01-24T00:49:33Z")

</div>

It helped a lot, I’ll try it and post the results.

---

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 24, 2022, 2:46am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/14 "2022-01-24T02:46:14Z")

</div>

The call stack is:

| \> | vtkIOXMLParser-pv5.10.dll!vtkXMLParser::ReportXmlParseError() line 375 | C++ |
| --- | --- | --- |
| | vtkIOXMLParser-pv5.10.dll!vtkXMLParser::ParseBuffer(const char \* buffer, unsigned int count) line 395 | C++ |
| | vtkIOXMLParser-pv5.10.dll!vtkXMLParser::ParseXML() line 285 | C++ |
| | vtkIOXMLParser-pv5.10.dll!vtkXMLParser::Parse() line 163 | C++ |
| | vtkIOXMLParser-pv5.10.dll!vtkXMLParser::Parse(const char \* inputString) line 104 | C++ |
| | vtkRemotingServerManager-pv5.10.dll!vtkSIProxyDefinitionManager::LoadConfigurationXMLFromString(const char \* xmlContent, bool attachHints) line 773 | C++ |
| | vtkRemotingServerManager-pv5.10.dll!vtkSIProxyDefinitionManager::HandlePlugin(vtkPVPlugin \* plugin) line 1202 | C++ |
| | vtkRemotingServerManager-pv5.10.dll!vtkSIProxyDefinitionManager::vtkSIProxyDefinitionManager() line 445 | C++ |
| | vtkRemotingServerManager-pv5.10.dll!vtkSIProxyDefinitionManager::New() line 420 | C++ |
| | vtkRemotingServerManager-pv5.10.dll!vtkPVSessionCore::vtkPVSessionCore() line 288 | C++ |
| | vtkRemotingServerManager-pv5.10.dll!vtkPVSessionCore::New() line 237 | C++ |
| | vtkRemotingServerManager-pv5.10.dll!vtkSMSession::vtkSMSession(bool initialize\_during\_constructor, vtkPVSessionCore \* preExistingSessionCore) line 63 | C++ |
| | vtkRemotingServerManager-pv5.10.dll!vtkSMSession::New() line 46 | C++ |
| | vtkRemotingServerManager-pv5.10.dll!vtkSMSession::ConnectToSelf() line 272 | C++ |
| | pqCore-pv5.10.dll!pqObjectBuilder::createServer(const pqServerResource & resource, int connectionTimeout, vtkNetworkAccessManager::ConnectionResult & result) line 682 | C++ |
| | [Inline Frame] pqApplicationComponents-pv5.10.dll!pqObjectBuilder::createServer(const pqServerResource &) line 98 | C++ |
| | pqApplicationComponents-pv5.10.dll!pqAlwaysConnectedBehavior::serverCheck() line 83 | C++ |
| | pqApplicationComponents-pv5.10.dll!pqAlwaysConnectedBehavior::pqAlwaysConnectedBehavior(QObject \* parentObject) line 61 | C++ |
| | pqApplicationComponents-pv5.10.dll!pqParaViewBehaviors::pqParaViewBehaviors(QMainWindow \* mainWindow, QObject \* parentObject) line 235 | C++ |
| | paraview.exe!ParaViewMainWindow::ParaViewMainWindow() line 300 | C++ |
| | paraview.exe!pqparaviewInitializer::Initialize(int argc, char \* \* argv) line 121 | C++ |
| | paraview.exe!main(int argc, char \* \* argv) line 145 | C++ |
| | [External Codes] | |

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [January 24, 2022, 2:58am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/15 "2022-01-24T02:58:21Z")

</div>

What is the value of the _xmlcontent_ parameter in **vtkSIProxyDefinitionManager::LoadConfigurationXMLFromString()** when your locale setting is English vs Korean?

---

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 24, 2022, 3:40am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/16 "2022-01-24T03:40:51Z")

</div>

Depending on locale, the xmlContent value is:

Korean : 0x0000019a197100a0  
English : 0x000001c3f528f420

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [January 24, 2022, 3:47am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/17 "2022-01-24T03:47:22Z")

</div>

That’s not helpful. You need to inspect the text content using the quick watch dialog (shift F9)

 ![image](https://discourse.paraview.org/uploads/default/original/2X/6/6844c1d17919b4051ca720044f2f05d7a8d240f7.png)

---

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 24, 2022, 3:58am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/18 "2022-01-24T03:58:19Z")

</div>

[xmlContent value when locale is english.txt](https://discourse.paraview.org/uploads/short-url/2f7BzIvaPfxT47zDQVZEAUeElVg.txt) (2.1 KB)  
[xmlContent value when locale is korean.txt](https://discourse.paraview.org/uploads/short-url/qclpS56c9ZYxBOJfTaXUxLhqWhB.txt) (49.7 KB)

---

<div class="post-metadata">

### Author: ![kayang](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kayang](https://discourse.paraview.org/u/kayang)
#### Post date: [January 24, 2022, 4:31am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/19 "2022-01-24T04:31:05Z")

</div>

ERROR: In C:\pv\pv\VTK\IO\XMLParser\vtkXMLParser.cxx, line 379  
vtkPVXMLParser (000002EF88900710): Error parsing XML in stream **at line 1059, column 36** , byte index 49204: not well-formed (invalid token)

As mentioned in the output message, when locale is korean, broken characters are found in line 1059, column 36 of the xml file.  
I don’t know why these broken letters went into this place.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/4/4ba3095b64b9b42ad0559de27063fe36a8a49e43.png)

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [January 24, 2022, 4:42am UTC](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816/20 "2022-01-24T04:42:18Z")

</div>

That XML file contains a non-ASCII character where a hyphen should be.

Edit the file **$paraview\VTKExtensions\IOImage\Resources\readers\_pv\_ioimage.xml** and replace  
`high-bit–depth`  
with  
`high-bit-depth`

Do you see the difference? Now regenerate with _cmake_ and try again.

[Next page](https://discourse.paraview.org/t/paraview-output-message-vtkxmlparser-error-parsing-xml/8816.md?page=2)
