Dmitry Pershin

Results 16 comments of Dmitry Pershin

@Jacob-Flasheye Hi. Could you please provide some examples of how you use ``Any`` typed fields? The reason it has been removed is that it is not possible to analyze the...

@Jacob-Flasheye Hi, Thanks for the thorough answer! I am working on raw xml fields right now but I am not sure it will solve your pain with ``xs:any``. You could...

I added dynamic model creation experimental support in 2.10.0.

@npmccallum Hi, "first text" and "second text" can be extracted like this: ```python from pydantic_xml import BaseXmlModel class Bar(BaseXmlModel, tag='bar'): text: str class Foo(BaseXmlModel, tag='foo'): text: str bar: Bar foo...

@npmccallum I think it is possible to add support for element tails. The problem is that in xml parsers (etree, lxml) the tail text corresponds to a sub-element not to...

@zygi Hi, Right now there is not way to model an element with dynamic tags. The workaround I see is the following: ```python from typing import Any from lxml import...

@shevernitskiy hi, Could you provide the document you are trying to parse?

The problem is that in `ordered` search mode `Union` typed field is bound to the first matched element skipping all the elements before. In your example `FieldBool` is not found,...

Yes, I will think about it. It is not easy to implement the search keeping elements order due to internal implementation details, but I will try to find a workaround.

@Woody1193 Hi, Unfortunately, annotated attributes are not supported right now. The workaround I came up with is: ```python >>> from decimal import Decimal >>> from pydantic import Field >>> from...