Performance problem on loading XHTML schema

SyntaxEditor Web Languages Add-on for Windows Forms Forum

Posted 13 years ago by anja
Version: 4.0.0287
Avatar
Dear Actipro Team,

I'm evaluating the editor samples and in "Quick Start: XML Language Reflection" loading "W3C XHTML Schema" takes a lot of time - up to 10 seconds on my machine:

schemaResolver.LoadSchema(xsdEditor.Document.Text);
XHTML Schema is exactly what I need for my project.
How can I increase the performance?

Thanks!

Kind Regards
Anja

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
It shouldn't be taking that long. It might be this line in that schema that tries to include the 'XML' schema:
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
      schemaLocation="http://www.w3.org/2001/xml.xsd"/>
You could probably load it directly in your schema set along with this schema to prevent it from trying to go to the Internet to find it, which is likely your slowdown.


Actipro Software Support

Posted 13 years ago by anja
Avatar
Great! It seems that deleting the line and loading the schema directly solves the problem!
Thanks for your outstanding support!
Anja
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.