juan_gandhi: (Default)
[personal profile] juan_gandhi
Сегодня на работе сюрприз. Пришлось мне в XmlObject  вставлять другие XmlObjects, как children. И вот вдруг обнаружил - коли ты его куда-то вставляешь, то у него имя изменяется! Вставь в два объекта - ну соответственно.

Нет, ну я думал, что эта эпоха идиотов давно прошла, лет 10 назад. Ан нет. Они все там же.

Date: 2018-07-17 05:08 am (UTC)
lev: (Default)
From: [personal profile] lev
Имя?

Date: 2018-07-17 11:30 am (UTC)
From: [personal profile] sassa_nf
I don't see getName there. I see cursor.getName(). That's QName, or qualified name. It will change, if namespace changes. getLocalPart() should stay the same.

Date: 2018-07-17 01:57 pm (UTC)
lev: (Default)
From: [personal profile] lev
и как можно один XO вставить в два других?

Date: 2018-07-17 04:13 pm (UTC)
lev: (Default)
From: [personal profile] lev
как вы себе представляете дерево, которое может принадлежать нескольким деревьям?

Date: 2018-07-17 06:45 pm (UTC)
From: [personal profile] sassa_nf
"Это как у элементов множества хранить ссылку на множество"

No, it's like for a function A->B, knowing B you can find A. Axiom of choice?..

Date: 2018-07-17 07:27 pm (UTC)
From: [personal profile] sassa_nf
Not an arbitrary function, but a function Parent->[Child], or [Parent->Child_i].

The sets of children may intersect, then, of course, you can't have the inverse, Child_i->Parent. But when you do have the inverse, then you can't have the intersecting sets of children.

Date: 2018-07-18 05:01 am (UTC)
lev: (Default)
From: [personal profile] lev
так опен сорс же, возможно только вашего дерева и не хватает.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718 1920 21
22232425262728
2930     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 26th, 2025 11:57 pm
Powered by Dreamwidth Studios