Skip to content

Commit

Permalink
[axlstar] Remplace utilisation de 'XmlReaderSettings.ProhibitDtd' par…
Browse files Browse the repository at this point in the history
… 'DtdProcessing'.

La propriété 'ProhibitDtd' est obsolète.
  • Loading branch information
grospelliergilles committed Oct 5, 2024
1 parent 9677b3d commit f7b35db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions axlstar/Arcane.Axl/Arcane.Axl/XmlInfo.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2.0
//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/
/* XmlInfo.h (C) 2000-2007 */
/* XmlInfo.h (C) 2000-2024 */
/* */
/* Informations sur un fichier XML. */
/*---------------------------------------------------------------------------*/
Expand Down Expand Up @@ -102,11 +102,11 @@ public static XmlElement RootNode(string file_name)
public static XmlElement RootNode(string file_name, Stream schema_stream)
{
// Note: avec la version de mono apres 1.1.16.1, la validation ne fonctionne pas
// cause d'un probl�me de namespace. On la désactive donc.
// à cause d'un problème de namespace. On la désactive donc.
XmlReaderSettings settings = new XmlReaderSettings();
settings.XmlResolver = new MyXmlResolver();
// Necessaire sour Win32 pour eviter une exception de securite
settings.ProhibitDtd = false;
// Autorise la lecture des DtD.
settings.DtdProcessing = DtdProcessing.Parse;

bool do_validation = false;
if (do_validation){
Expand Down

0 comments on commit f7b35db

Please sign in to comment.